Fix the leak

This commit is contained in:
Daniel Mills
2020-12-28 13:17:49 -05:00
parent 5878128746
commit 56ae387f7b
6 changed files with 79 additions and 31 deletions

View File

@@ -401,4 +401,16 @@ public interface IrisAccess extends Hotloadable, DataProvider {
int getPrecacheSize();
Chunk generatePaper(World world, int cx, int cz);
default int getParallaxChunkCount()
{
int v= 0;
for(int i = 0; i < getCompound().getSize(); i++)
{
v += getCompound().getEngine(i).getParallax().getChunkCount();
}
return v;
}
}