aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2024-11-18 12:24:37 +0100
committerNassim Jahnke <[email protected]>2024-11-18 12:24:37 +0100
commit575c1c4f89bf0ad17d9d2607fa355c5a898caca0 (patch)
tree1988634e614c546c9d22ff91c529d8f4c853a8a6
parent34804890e878e46235eba830148300901d4b672b (diff)
downloadPaper-575c1c4f89bf0ad17d9d2607fa355c5a898caca0.tar.gz
Paper-575c1c4f89bf0ad17d9d2607fa355c5a898caca0.zip
Update disableGameRuleLimits casing
-rw-r--r--patches/server/1041-Add-startup-flag-to-disable-gamerule-limits.patch4
1 files 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;