mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-17 04:41:31 +01:00
Fix NPC despawned if chunk unload is cancelled
This commit is contained in:
parent
e7b1a69a14
commit
df75ed77ca
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user