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
|
@Override
|
||||||
public void run() {
|
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.
|
// Get the default display item location.
|
||||||
Location location = this.itemcase.getLocation();
|
Location location = this.itemcase.getLocation();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user