From d3ed650b744a70a50a02d33f0f90f478ecdae0cf Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Sun, 16 May 2021 00:15:59 +0100 Subject: [PATCH] Make LWC donation and display protections work with shops --- .../Acrobot/ChestShop/Plugins/LightweightChestProtection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/Acrobot/ChestShop/Plugins/LightweightChestProtection.java b/src/main/java/com/Acrobot/ChestShop/Plugins/LightweightChestProtection.java index ddb9868..123cbbc 100644 --- a/src/main/java/com/Acrobot/ChestShop/Plugins/LightweightChestProtection.java +++ b/src/main/java/com/Acrobot/ChestShop/Plugins/LightweightChestProtection.java @@ -120,7 +120,7 @@ public class LightweightChestProtection implements Listener { return; } - if (!lwc.canAccessProtection(player, protection) || protection.getType() == Protection.Type.DONATION) { + if (!lwc.canAccessProtection(player, protection) && !protection.getType().name().equals("DONATION") && !protection.getType().name().equals("DISPLAY")) { event.setResult(Event.Result.DENY); } else if (Properties.TURN_OFF_DEFAULT_PROTECTION_WHEN_PROTECTED_EXTERNALLY) { event.setResult(Event.Result.ALLOW);