Fix nulled value.

This commit is contained in:
Brianna 2020-08-26 08:21:50 -05:00
parent 20b113fead
commit 306e67d583

View File

@ -51,7 +51,8 @@ public class CachedChunk {
if (!Bukkit.getWorld(world).isChunkLoaded(x, z)) {
return new Entity[0];
}
return getChunk().getEntities();
Chunk chunk = getChunk();
return chunk == null ? new Entity[0] : getChunk().getEntities();
}
@Override