diff --git a/core/src/main/java/de/erethon/dungeonsxl/trigger/TriggerListener.java b/core/src/main/java/de/erethon/dungeonsxl/trigger/TriggerListener.java index df2a718c..57bcb60b 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/trigger/TriggerListener.java +++ b/core/src/main/java/de/erethon/dungeonsxl/trigger/TriggerListener.java @@ -57,6 +57,9 @@ public class TriggerListener implements Listener { @EventHandler public void onPlayerInteract(PlayerInteractEvent event) { + if (event.getAction() != Action.RIGHT_CLICK_BLOCK && event.getAction() != Action.RIGHT_CLICK_AIR) { + return; + } Player player = event.getPlayer(); if (DPlayerListener.isCitizensNPC(player)) { return; @@ -66,10 +69,6 @@ public class TriggerListener implements Listener { return; } - if (event.getAction() != Action.RIGHT_CLICK_BLOCK && event.getAction() != Action.RIGHT_CLICK_AIR) { - return; - } - ItemStack item = event.getItem(); if (item == null) { return;