Smashed the Stupid out of Memory

This commit is contained in:
Daniel Mills
2020-01-19 02:58:29 -05:00
parent 445ce46357
commit f5ab7f3102
7 changed files with 74 additions and 25 deletions

View File

@@ -169,4 +169,17 @@ public class CompiledDimension
return b;
}
public void dispose()
{
biomes.clear();
biomeCache.clear();
for(GenObjectGroup i : objects.values())
{
i.dispose();
}
objects.clear();
}
}

View File

@@ -104,4 +104,9 @@ public class IrisDimension
{
return environment;
}
public void dispose()
{
biomes.clear();
}
}