Skip to content

Commit

Permalink
Restore interrupted state
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jan 17, 2021
1 parent 1e83703 commit 0397f8f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ public Material getBlockType(final int x, final int y, final int z) {
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;
}
}
Expand Down

0 comments on commit 0397f8f

Please sign in to comment.