From fee6807d3b0de6f50f740cf8da74aa7fa1594757 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 6 Feb 2021 15:37:53 +0100 Subject: [PATCH] Fix Signedit --- .../src/de/steamwar/bausystem/world/RegionListener.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/RegionListener.java b/BauSystem_Main/src/de/steamwar/bausystem/world/RegionListener.java index 1c7df86..20b4f3b 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/RegionListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/RegionListener.java @@ -116,9 +116,9 @@ public class RegionListener implements Listener { public void editSign(PlayerInteractEvent event) { if(event.getAction() != Action.RIGHT_CLICK_BLOCK || !event.getClickedBlock().getType().name().contains("SIGN") || - !event.getPlayer().isSneaking()) - return; - if(event.getItem() != null || event.getItem().getType() != Material.AIR) + !event.getPlayer().isSneaking() || + event.getItem() != null || + event.getItem().getType() != Material.AIR) return; Player player = event.getPlayer();