fixed NullPointerException
This commit is contained in:
parent
1d8366487b
commit
2aa7dd13c3
@ -258,7 +258,7 @@ public abstract class EventCreature<T extends LivingEntity> implements Listener
|
||||
@EventHandler
|
||||
public void onChunkUnload(ChunkUnloadEvent event)
|
||||
{
|
||||
if (event.getChunk().equals(_entity.getLocation().getChunk()))
|
||||
if (_entity.getLocation().getChunk().equals(event.getChunk()))
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user