mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-23 02:55:45 +01:00
Use stored location in EntityDeathEvent
This commit is contained in:
parent
ffbeedfccd
commit
1bc5a47ae8
@ -240,7 +240,7 @@ public class EventListen implements Listener {
|
||||
event.getDrops().clear();
|
||||
}
|
||||
|
||||
final Location location = npc.getEntity().getLocation();
|
||||
final Location location = npc.getStoredLocation();
|
||||
Bukkit.getPluginManager().callEvent(new NPCDeathEvent(npc, event));
|
||||
npc.despawn(DespawnReason.DEATH);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user