Fix NPC despawned if chunk unload is cancelled

This commit is contained in:
JCThePants 2015-03-30 01:07:54 -07:00
parent e7b1a69a14
commit df75ed77ca

View File

@ -113,7 +113,7 @@ public class EventListen implements Listener {
respawnAllFromCoord(toCoord(event.getChunk()));
}
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
@EventHandler(priority = EventPriority.HIGHEST)
public void onChunkUnload(ChunkUnloadEvent event) {
ChunkCoord coord = toCoord(event.getChunk());
Location loc = new Location(null, 0, 0, 0);