mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-30 06:33:56 +01:00
Merge pull request #304 from JCThePants/JCThePants-patch-5
Fix NPC despawned if chunk unload is cancelled
This commit is contained in:
commit
7d6a3f476b
@ -113,7 +113,7 @@ public class EventListen implements Listener {
|
|||||||
respawnAllFromCoord(toCoord(event.getChunk()));
|
respawnAllFromCoord(toCoord(event.getChunk()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.HIGHEST)
|
||||||
public void onChunkUnload(ChunkUnloadEvent event) {
|
public void onChunkUnload(ChunkUnloadEvent event) {
|
||||||
ChunkCoord coord = toCoord(event.getChunk());
|
ChunkCoord coord = toCoord(event.getChunk());
|
||||||
Location loc = new Location(null, 0, 0, 0);
|
Location loc = new Location(null, 0, 0, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user