mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-19 16:03:22 +02:00
fix block restriction not working
This commit is contained in:
parent
691eacb82e
commit
eb65aacd4d
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ public class Events {
|
||||||
// if item is NOT in whitelist
|
// if item is NOT in whitelist
|
||||||
if (!checkList(Utl.getList(player,type,"whitelist"),targetStack)) {
|
if (!checkList(Utl.getList(player,type,"whitelist"),targetStack)) {
|
||||||
// if block is restricted and items is block, false, ect
|
// 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,"food") && food.contains(targetStack.getUseAction())) return false;
|
||||||
if (Utl.getBool(player,type,"usable") && !notUsable.contains(targetStack.getUseAction())) return false;
|
if (Utl.getBool(player,type,"usable") && !notUsable.contains(targetStack.getUseAction())) return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue