From 63146ede57dd51a21c60a3e00b0b2542484ef069 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 27 Mar 2022 00:28:55 +0100 Subject: [PATCH] Hotfix WorldInteraction --- src/de/steamwar/lobby/listener/WorldInteraction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/lobby/listener/WorldInteraction.java b/src/de/steamwar/lobby/listener/WorldInteraction.java index 94143d5..90207ea 100644 --- a/src/de/steamwar/lobby/listener/WorldInteraction.java +++ b/src/de/steamwar/lobby/listener/WorldInteraction.java @@ -87,7 +87,7 @@ public class WorldInteraction extends BasicListener { @EventHandler public void handleGoldenPressurePlate(PlayerInteractEvent event) { - if(!ModifyCommand.modifying(event.getPlayer())) + if(!ModifyCommand.modifying(event.getPlayer()) && (event.getAction() == Action.RIGHT_CLICK_BLOCK || event.getAction() == Action.LEFT_CLICK_BLOCK)) event.setCancelled(true); if(!event.hasBlock() || event.getAction() != Action.PHYSICAL || event.getClickedBlock().getType() != Material.LIGHT_WEIGHTED_PRESSURE_PLATE)