From 0110a4ceafc6f63be2862d0d9259eddadf9e95e9 Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Sat, 16 Nov 2024 15:09:46 +0100 Subject: [PATCH] Bugfix max homes limit not being ignored when lower than -1 --- gradle.properties | 2 +- .../cc/reconnected/server/commands/home/SetHomeCommand.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,