mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-12-29 03:48:43 +01:00
Fix nulled value.
This commit is contained in:
parent
20b113fead
commit
306e67d583
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user