mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-12-31 21:07:47 +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)) {
|
if (!Bukkit.getWorld(world).isChunkLoaded(x, z)) {
|
||||||
return new Entity[0];
|
return new Entity[0];
|
||||||
}
|
}
|
||||||
return getChunk().getEntities();
|
Chunk chunk = getChunk();
|
||||||
|
return chunk == null ? new Entity[0] : getChunk().getEntities();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user