Restore interrupted state
This commit is contained in:
parent
1e83703f9b
commit
0397f8fcfa
|
@ -104,6 +104,8 @@ public class AsyncWorldCache {
|
||||||
return getSnap(x,z).getBlockType(xx, y, zz);
|
return getSnap(x,z).getBlockType(xx, y, zz);
|
||||||
} catch (InterruptedException | ExecutionException e) {
|
} catch (InterruptedException | ExecutionException e) {
|
||||||
Greenhouses.getInstance().logError("Chunk could not be obtained async! " + e);
|
Greenhouses.getInstance().logError("Chunk could not be obtained async! " + e);
|
||||||
|
// Restore interrupted state...
|
||||||
|
Thread.currentThread().interrupt();
|
||||||
return Material.AIR;
|
return Material.AIR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue