mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
Fix pregen resume issue
This commit is contained in:
parent
68e1830d8e
commit
2641220fb0
@ -372,6 +372,8 @@ public class PregenJob implements Listener
|
||||
|
||||
@EventHandler
|
||||
public void on(ChunkUnloadEvent e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if(e.getWorld().equals(world) && isChunkWithin(e.getChunk().getX(), e.getChunk().getZ()) && consumer != null)
|
||||
{
|
||||
@ -379,6 +381,12 @@ public class PregenJob implements Listener
|
||||
}
|
||||
}
|
||||
|
||||
catch(Throwable ex)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void saveAll()
|
||||
{
|
||||
for(Chunk i : world.getLoadedChunks())
|
||||
|
Loading…
x
Reference in New Issue
Block a user