Fix server from crashing when chunks with itemcases become unloaded.

This commit is contained in:
Jesse Prescott 2018-05-30 13:32:49 +01:00
parent 51d0057fdb
commit be6add87e3

View File

@ -347,6 +347,13 @@ public final class Itemcase {
@Override
public void run() {
// If chunk is not currently loaded.
if(!this.itemcase.chunk.isLoaded()) {
// Dont bother running this task.
return;
}
// Get the default display item location.
Location location = this.itemcase.getLocation();