mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
f
This commit is contained in:
parent
959a5b5c70
commit
286c4da2f3
@ -207,21 +207,9 @@ public class PregenJob implements Listener
|
|||||||
{
|
{
|
||||||
if(clf.flip())
|
if(clf.flip())
|
||||||
{
|
{
|
||||||
int g = 0;
|
|
||||||
|
|
||||||
for(Chunk i : world.getLoadedChunks())
|
for(Chunk i : world.getLoadedChunks())
|
||||||
{
|
{
|
||||||
g++;
|
world.unloadChunkRequest(i.getX(), i.getZ());
|
||||||
|
|
||||||
if(g > 1500)
|
|
||||||
{
|
|
||||||
i.unload(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
world.unloadChunkRequest(i.getX(), i.getZ());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -242,21 +230,9 @@ public class PregenJob implements Listener
|
|||||||
|
|
||||||
public void saveAll()
|
public void saveAll()
|
||||||
{
|
{
|
||||||
int g = 0;
|
|
||||||
|
|
||||||
for(Chunk i : world.getLoadedChunks())
|
for(Chunk i : world.getLoadedChunks())
|
||||||
{
|
{
|
||||||
g++;
|
world.unloadChunkRequest(i.getX(), i.getZ());
|
||||||
|
|
||||||
if(g > 1500)
|
|
||||||
{
|
|
||||||
i.unload(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
|
||||||
{
|
|
||||||
world.unloadChunkRequest(i.getX(), i.getZ());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
world.save();
|
world.save();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user