mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-27 12:45:59 +01:00
This commit is contained in:
parent
3b0814e853
commit
d0e9b66d4a
@ -96,6 +96,8 @@ public class AsyncChunkProvider118_2 {
|
||||
try {
|
||||
return getAsyncSaveData.invoke(null, world.getHandle(), c);
|
||||
} catch (IllegalAccessException | InvocationTargetException e) {
|
||||
//Save as from main thread
|
||||
if (((CraftServer) Bukkit.getServer()).getServer().hasStopped()) return null;
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}, ((CraftServer) Bukkit.getServer()).getServer());
|
||||
|
@ -95,6 +95,8 @@ public class AsyncChunkProvider119 {
|
||||
try {
|
||||
return getAsyncSaveData.invoke(null, world.getHandle(), c);
|
||||
} catch (ReflectiveOperationException e) {
|
||||
//Save as from main thread
|
||||
if (((CraftServer) Bukkit.getServer()).getServer().hasStopped()) return null;
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}, ((CraftServer) Bukkit.getServer()).getServer());
|
||||
|
Loading…
Reference in New Issue
Block a user