9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-25 10:09:14 +00:00
This commit is contained in:
Daniel Mills
2020-09-03 16:37:03 -04:00
parent 959a5b5c70
commit 286c4da2f3

View File

@@ -207,21 +207,9 @@ public class PregenJob implements Listener
{
if(clf.flip())
{
int g = 0;
for(Chunk i : world.getLoadedChunks())
{
g++;
if(g > 1500)
{
i.unload(true);
}
else
{
world.unloadChunkRequest(i.getX(), i.getZ());
}
world.unloadChunkRequest(i.getX(), i.getZ());
}
}
@@ -242,21 +230,9 @@ public class PregenJob implements Listener
public void saveAll()
{
int g = 0;
for(Chunk i : world.getLoadedChunks())
{
g++;
if(g > 1500)
{
i.unload(true);
}
else
{
world.unloadChunkRequest(i.getX(), i.getZ());
}
world.unloadChunkRequest(i.getX(), i.getZ());
}
world.save();