Ignore cancelled right click events

This commit is contained in:
fullwall 2013-10-17 15:27:53 +08:00
parent 24cee62ea8
commit 10ba87e552

View File

@ -242,7 +242,7 @@ public class EventListen implements Listener {
checkCreationEvent(event); checkCreationEvent(event);
} }
@EventHandler @EventHandler(ignoreCancelled = true)
public void onPlayerInteractEntity(PlayerInteractEntityEvent event) { public void onPlayerInteractEntity(PlayerInteractEntityEvent event) {
NPC npc = npcRegistry.getNPC(event.getRightClicked()); NPC npc = npcRegistry.getNPC(event.getRightClicked());
if (npc == null) { if (npc == null) {