Fix server from crashing when chunks with itemcases become unloaded.
This commit is contained in:
parent
51d0057fdb
commit
be6add87e3
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user