mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-18 23:01:07 +00:00
Fix pregen resume issue
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user