Fix enderman equipping

This commit is contained in:
fullwall 2016-06-05 19:13:16 +08:00
parent fdf5c762c8
commit 5d060e73ee

View File

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