From 10ba87e5526366b8cf150656bea4830250f89e00 Mon Sep 17 00:00:00 2001 From: fullwall Date: Thu, 17 Oct 2013 15:27:53 +0800 Subject: [PATCH] Ignore cancelled right click events --- src/main/java/net/citizensnpcs/EventListen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/citizensnpcs/EventListen.java b/src/main/java/net/citizensnpcs/EventListen.java index ff1aa690d..0b9250fc7 100644 --- a/src/main/java/net/citizensnpcs/EventListen.java +++ b/src/main/java/net/citizensnpcs/EventListen.java @@ -242,7 +242,7 @@ public class EventListen implements Listener { checkCreationEvent(event); } - @EventHandler + @EventHandler(ignoreCancelled = true) public void onPlayerInteractEntity(PlayerInteractEntityEvent event) { NPC npc = npcRegistry.getNPC(event.getRightClicked()); if (npc == null) {