From b464287fed6a5e138ba9e48dcc839005a7f17068 Mon Sep 17 00:00:00 2001 From: Oth3r Date: Wed, 7 Aug 2024 12:46:47 -0500 Subject: [PATCH] comment + todo --- src/main/java/one/oth3r/sit/file/CustomBlock.java | 2 +- src/main/java/one/oth3r/sit/utl/Logic.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/one/oth3r/sit/file/CustomBlock.java b/src/main/java/one/oth3r/sit/file/CustomBlock.java index 203eac6..c1c04a9 100644 --- a/src/main/java/one/oth3r/sit/file/CustomBlock.java +++ b/src/main/java/one/oth3r/sit/file/CustomBlock.java @@ -55,7 +55,7 @@ public class CustomBlock { if (!blockType) return false; // now check if the state is one of the acceptable states - for (String state : blockStates) { + for (String state : blockStates) { //todo extract the blockstates to check them better // if there is a NOT (!) blockstate if (state.startsWith("!")) { // if it is contained in the block, return false diff --git a/src/main/java/one/oth3r/sit/utl/Logic.java b/src/main/java/one/oth3r/sit/utl/Logic.java index 343ca73..f81c013 100644 --- a/src/main/java/one/oth3r/sit/utl/Logic.java +++ b/src/main/java/one/oth3r/sit/utl/Logic.java @@ -54,6 +54,7 @@ public class Logic { // if can't sit with hand, false if (!sittingConfig.canSitWithHand()) return false; + // a boolean that shows if the player can sit or not boolean canSit = true; // for each hand