mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-11 20:13:55 +00:00
Fix some command parsing issues
Tab complete runs on main thread - that could be an issue
This commit is contained in:
@ -307,8 +307,15 @@ public class BukkitQueue_All extends BukkitQueue_0<ChunkSnapshot, ChunkSnapshot,
|
||||
private ChunkSnapshot tryGetSnasphot(Chunk chunk) {
|
||||
try {
|
||||
return chunk.getChunkSnapshot(false, true, false);
|
||||
} catch (IllegalStateException ignore) {
|
||||
return null;
|
||||
} catch (Throwable ignore) {
|
||||
Throwable cause = ignore;
|
||||
while (cause.getCause() != null) {
|
||||
cause = cause.getCause();
|
||||
}
|
||||
if (cause instanceof IllegalStateException) {
|
||||
return null;
|
||||
}
|
||||
throw ignore;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user