From efe9ff7024dc199f18aafe036b151e3f416faeb9 Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Fri, 3 Jul 2020 18:56:29 +0100 Subject: [PATCH] Fix TURN_OFF_SIGN_PROTECTION not working (Fixes #233) --- .../com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java b/src/main/java/com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java index 4d1282b..d622441 100644 --- a/src/main/java/com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java +++ b/src/main/java/com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java @@ -131,7 +131,7 @@ public class PlayerInteract implements Listener { if (action == RIGHT_CLICK_BLOCK) { event.setCancelled(true); - } else if (action == LEFT_CLICK_BLOCK && !ChestShopSign.canAccess(player, sign)) { + } else if (action == LEFT_CLICK_BLOCK && !Properties.TURN_OFF_SIGN_PROTECTION && !ChestShopSign.canAccess(player, sign)) { event.setCancelled(true); }