Restore interrupted state

This commit is contained in:
tastybento 2021-01-17 11:34:41 -08:00
parent 1e83703f9b
commit 0397f8fcfa
1 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,8 @@ public class AsyncWorldCache {
return getSnap(x,z).getBlockType(xx, y, zz);
} catch (InterruptedException | ExecutionException e) {
Greenhouses.getInstance().logError("Chunk could not be obtained async! " + e);
// Restore interrupted state...
Thread.currentThread().interrupt();
return Material.AIR;
}
}