Ignore cancelled right click events
This commit is contained in:
parent
551e1e8617
commit
215a834458
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue