diff --git a/src/main/java/one/oth3r/sit/file/ServerConfig.java b/src/main/java/one/oth3r/sit/file/ServerConfig.java index 53c2dc5..614212c 100644 --- a/src/main/java/one/oth3r/sit/file/ServerConfig.java +++ b/src/main/java/one/oth3r/sit/file/ServerConfig.java @@ -69,7 +69,7 @@ public class ServerConfig { return keepActive; } - public boolean isSitWhileSeated() { + public boolean canSitWhileSeated() { return sitWhileSeated; } diff --git a/src/main/java/one/oth3r/sit/utl/Logic.java b/src/main/java/one/oth3r/sit/utl/Logic.java index 9875358..089b0b8 100644 --- a/src/main/java/one/oth3r/sit/utl/Logic.java +++ b/src/main/java/one/oth3r/sit/utl/Logic.java @@ -17,8 +17,8 @@ public class Logic { // cant sit if crouching if (player.isSneaking()) return false; - // if sitting on a stair and sit while seated off, false - if (FileData.getSitEntity(player) != null && !FileData.getServerConfig().isSitWhileSeated()) return false; + // if sitting on a sit entity and sit while seated off, false + if (!FileData.getServerConfig().canSitWhileSeated() && FileData.getSitEntity(player) != null) return false; // if hit result isnt null (check the hands of the player) & the player hand checker returns false (can't sit with the items in the hand), quit if (hitResult != null) {