Skip to content

Commit 02ec8e9

Browse files
committed
[ci skip] Remove dead disableGameRuleLimits property reading
1 parent 6f4b004 commit 02ec8e9

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

paper-server/patches/sources/net/minecraft/world/level/gamerules/GameRules.java.patch

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
11
--- a/net/minecraft/world/level/gamerules/GameRules.java
22
+++ b/net/minecraft/world/level/gamerules/GameRules.java
3-
@@ -21,6 +_,13 @@
4-
5-
public class GameRules {
6-
private static final Logger LOGGER = LogUtils.getLogger();
7-
+ // Paper start - allow disabling gamerule limits
8-
+ private static final boolean DISABLE_LIMITS = Boolean.getBoolean("paper.disableGameRuleLimits");
9-
+
10-
+ private static int limit(final int limit, final int unlimited) {
11-
+ return DISABLE_LIMITS ? unlimited : limit;
12-
+ }
13-
+ // Paper end - allow disabling gamerule limits
14-
public static final GameRule<Boolean> ADVANCE_TIME = registerBoolean("advance_time", GameRuleCategory.UPDATES, !SharedConstants.DEBUG_WORLD_RECREATE);
15-
public static final GameRule<Boolean> ADVANCE_WEATHER = registerBoolean("advance_weather", GameRuleCategory.UPDATES, !SharedConstants.DEBUG_WORLD_RECREATE);
16-
public static final GameRule<Boolean> ALLOW_ENTERING_NETHER_USING_PORTALS = registerBoolean(
173
@@ -130,13 +_,15 @@
184
}
195
}

0 commit comments

Comments
 (0)