Merge pull request #304 from JCThePants/JCThePants-patch-5

Fix NPC despawned if chunk unload is cancelled
This commit is contained in:
fullwall 2015-03-30 19:08:44 +08:00
commit 7d6a3f476b

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);