Skip to content

Commit 0ccc5fe

Browse files
committed
bypass keyboard movement ip whitelist for realms (closes #968)
1 parent 4edc155 commit 0ccc5fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/dev/isxander/controlify/config/settings/GlobalSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public boolean shouldUseKeyboardMovement() {
101101
return switch (ServerPolicies.ANALOGUE_MOVEMENT.getPolicy()) {
102102
case ALLOWED -> false;
103103
case DISALLOWED -> true;
104-
case UNSET -> analogueMovementWhitelist.stream().noneMatch(server.ip::endsWith);
104+
case UNSET -> !server.isRealm() && analogueMovementWhitelist.stream().noneMatch(server.ip::endsWith);
105105
};
106106
}
107107

0 commit comments

Comments
 (0)