Bugfix max homes limit not being ignored when lower than -1

This commit is contained in:
Alessandro Proto 2024-11-16 15:09:46 +01:00
parent 1aa225f700
commit 0110a4ceaf
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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,