forked from virt-mirrors/Sit
comment + todo
This commit is contained in:
parent
e2cdc9d1d4
commit
b464287fed
2 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,7 @@ public class CustomBlock {
|
||||||
if (!blockType) return false;
|
if (!blockType) return false;
|
||||||
|
|
||||||
// now check if the state is one of the acceptable states
|
// 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 there is a NOT (!) blockstate
|
||||||
if (state.startsWith("!")) {
|
if (state.startsWith("!")) {
|
||||||
// if it is contained in the block, return false
|
// if it is contained in the block, return false
|
||||||
|
|
|
@ -54,6 +54,7 @@ public class Logic {
|
||||||
// if can't sit with hand, false
|
// if can't sit with hand, false
|
||||||
if (!sittingConfig.canSitWithHand()) return false;
|
if (!sittingConfig.canSitWithHand()) return false;
|
||||||
|
|
||||||
|
// a boolean that shows if the player can sit or not
|
||||||
boolean canSit = true;
|
boolean canSit = true;
|
||||||
|
|
||||||
// for each hand
|
// for each hand
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue