From 575c1c4f89bf0ad17d9d2607fa355c5a898caca0 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Mon, 18 Nov 2024 12:24:37 +0100 Subject: [PATCH] Update disableGameRuleLimits casing --- .../1041-Add-startup-flag-to-disable-gamerule-limits.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/server/1041-Add-startup-flag-to-disable-gamerule-limits.patch b/patches/server/1041-Add-startup-flag-to-disable-gamerule-limits.patch index 426dd76265..452a3c6ba7 100644 --- a/patches/server/1041-Add-startup-flag-to-disable-gamerule-limits.patch +++ b/patches/server/1041-Add-startup-flag-to-disable-gamerule-limits.patch @@ -6,7 +6,7 @@ Subject: [PATCH] Add startup flag to disable gamerule limits -DPaper.DisableGameRuleLimits=true will disable gamerule limits diff --git a/src/main/java/net/minecraft/world/level/GameRules.java b/src/main/java/net/minecraft/world/level/GameRules.java -index 4ae47c2c5a6bcfbf932d000a80974463e2d3818d..467696a78791d65a66eb380e97d33123a5a12e61 100644 +index 4ae47c2c5a6bcfbf932d000a80974463e2d3818d..7c363d59c6567cae8e6caf213be51804efa5a96d 100644 --- a/src/main/java/net/minecraft/world/level/GameRules.java +++ b/src/main/java/net/minecraft/world/level/GameRules.java @@ -36,6 +36,14 @@ import org.slf4j.Logger; @@ -14,7 +14,7 @@ index 4ae47c2c5a6bcfbf932d000a80974463e2d3818d..467696a78791d65a66eb380e97d33123 public class GameRules { + // Paper start - allow disabling gamerule limits -+ private static final boolean DISABLE_LIMITS = Boolean.getBoolean("Paper.DisableGameRuleLimits"); ++ private static final boolean DISABLE_LIMITS = Boolean.getBoolean("paper.disableGameRuleLimits"); + + private static int limit(final int limit, final int unlimited) { + return DISABLE_LIMITS ? unlimited : limit;