From f3874cf9de82f161ba3593d6588393b150028a20 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 26 Mar 2022 16:25:12 +0100 Subject: [PATCH] Fix WorldInteraction --- .../lobby/listener/WorldInteraction.java | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/de/steamwar/lobby/listener/WorldInteraction.java b/src/de/steamwar/lobby/listener/WorldInteraction.java index 51771f6..8bef3fc 100644 --- a/src/de/steamwar/lobby/listener/WorldInteraction.java +++ b/src/de/steamwar/lobby/listener/WorldInteraction.java @@ -75,28 +75,7 @@ public class WorldInteraction extends BasicListener { @EventHandler public void onBlockPhysics(BlockPhysicsEvent event) { - if (event.getSourceBlock().getType().name().endsWith("_PRESSURE_PLATE")) { - event.setCancelled(true); - } - if (event.getSourceBlock().getType().name().endsWith("_BUTTON")) { - event.setCancelled(true); - } - if (event.getSourceBlock().getType() == Material.LEVER) { - event.setCancelled(true); - } - } - - @EventHandler - public void onPlayerInteract(PlayerInteractEvent event) { - if(ModifyCommand.modifying(event.getPlayer())) { - return; - } - if (event.getClickedBlock() == null) { - return; - } - if (event.getClickedBlock().getType().name().endsWith("_DOOR")) { - event.setCancelled(true); - } + event.setCancelled(true); } }