diff --git a/gradle.properties b/gradle.properties index 71f4ace..53ff062 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ yarn_mappings=1.20.1+build.10 loader_version=0.16.8 # Mod Properties -mod_version=1.17.2 +mod_version=1.17.3 maven_group=cc.reconnected archives_base_name=rcc-server diff --git a/src/main/java/cc/reconnected/server/commands/home/SetHomeCommand.java b/src/main/java/cc/reconnected/server/commands/home/SetHomeCommand.java index 4ec83e5..61cff48 100644 --- a/src/main/java/cc/reconnected/server/commands/home/SetHomeCommand.java +++ b/src/main/java/cc/reconnected/server/commands/home/SetHomeCommand.java @@ -66,7 +66,7 @@ public class SetHomeCommand { } var maxHomes = RccServer.CONFIG.homes.maxHomes; - if(homes.size() >= maxHomes && !exists) { + if(maxHomes >= 0 && homes.size() >= maxHomes && !exists) { context.getSource().sendFeedback(() -> Components.parse( RccServer.CONFIG.textFormats.commands.home.maxHomesReached, playerContext,