From eb65aacd4dbd4b07121f2756381ec2cc6921a0d6 Mon Sep 17 00:00:00 2001 From: Oth3r Date: Sat, 25 Nov 2023 10:37:07 -0600 Subject: [PATCH] fix block restriction not working --- src/main/java/one/oth3r/sit/Events.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/one/oth3r/sit/Events.java b/src/main/java/one/oth3r/sit/Events.java index 71cc350..0355445 100644 --- a/src/main/java/one/oth3r/sit/Events.java +++ b/src/main/java/one/oth3r/sit/Events.java @@ -54,7 +54,7 @@ public class Events { // if item is NOT in whitelist if (!checkList(Utl.getList(player,type,"whitelist"),targetStack)) { // if block is restricted and items is block, false, ect - if (Utl.getBool(player,type,"blocks") && (targetStack.getItem() instanceof BlockItem)) return false; + if (Utl.getBool(player,type,"block") && (targetStack.getItem() instanceof BlockItem)) return false; if (Utl.getBool(player,type,"food") && food.contains(targetStack.getUseAction())) return false; if (Utl.getBool(player,type,"usable") && !notUsable.contains(targetStack.getUseAction())) return false; }