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