mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-05 10:20:11 +01:00
Fix enderman equipping
This commit is contained in:
parent
fdf5c762c8
commit
5d060e73ee
@ -90,6 +90,7 @@ public class EquipmentEditor extends Editor {
|
||||
@EventHandler
|
||||
public void onPlayerInteractEntity(PlayerInteractEntityEvent event) {
|
||||
if (!npc.isSpawned() || !event.getPlayer().equals(player)
|
||||
|| event.getHand() != org.bukkit.inventory.EquipmentSlot.HAND
|
||||
|| !npc.equals(CitizensAPI.getNPCRegistry().getNPC(event.getRightClicked())))
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user