diff options
Diffstat (limited to 'patches/server/1041-Add-config-for-max-minecart-speed-gamerule.patch')
-rw-r--r-- | patches/server/1041-Add-config-for-max-minecart-speed-gamerule.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/1041-Add-config-for-max-minecart-speed-gamerule.patch b/patches/server/1041-Add-config-for-max-minecart-speed-gamerule.patch new file mode 100644 index 0000000000..0f017c93c5 --- /dev/null +++ b/patches/server/1041-Add-config-for-max-minecart-speed-gamerule.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Spottedleaf <[email protected]> +Date: Fri, 25 Oct 2024 14:04:54 -0700 +Subject: [PATCH] Add config for max minecart speed gamerule + + +diff --git a/src/main/java/net/minecraft/world/level/GameRules.java b/src/main/java/net/minecraft/world/level/GameRules.java +index 4ae47c2c5a6bcfbf932d000a80974463e2d3818d..22ca759954420ace26cafab4c10b69d5f906ded3 100644 +--- a/src/main/java/net/minecraft/world/level/GameRules.java ++++ b/src/main/java/net/minecraft/world/level/GameRules.java +@@ -120,7 +120,7 @@ public class GameRules { + public static final GameRules.Key<GameRules.BooleanValue> RULE_GLOBAL_SOUND_EVENTS = GameRules.register("globalSoundEvents", GameRules.Category.MISC, GameRules.BooleanValue.create(true)); + public static final GameRules.Key<GameRules.BooleanValue> RULE_DO_VINES_SPREAD = GameRules.register("doVinesSpread", GameRules.Category.UPDATES, GameRules.BooleanValue.create(true)); + public static final GameRules.Key<GameRules.BooleanValue> RULE_ENDER_PEARLS_VANISH_ON_DEATH = GameRules.register("enderPearlsVanishOnDeath", GameRules.Category.PLAYER, GameRules.BooleanValue.create(true)); +- public static final GameRules.Key<GameRules.IntegerValue> RULE_MINECART_MAX_SPEED = GameRules.register("minecartMaxSpeed", GameRules.Category.MISC, GameRules.IntegerValue.create(8, 1, 1000, FeatureFlagSet.of(FeatureFlags.MINECART_IMPROVEMENTS), (minecraftserver, gamerules_gameruleint) -> { ++ public static final GameRules.Key<GameRules.IntegerValue> RULE_MINECART_MAX_SPEED = GameRules.register("minecartMaxSpeed", GameRules.Category.MISC, GameRules.IntegerValue.create(8, 1, io.papermc.paper.configuration.GlobalConfiguration.get().misc.maxMinecartGamerule.or(1000), FeatureFlagSet.of(FeatureFlags.MINECART_IMPROVEMENTS), (minecraftserver, gamerules_gameruleint) -> { // Paper - max minecart speed config + })); + public static final GameRules.Key<GameRules.IntegerValue> RULE_SPAWN_CHUNK_RADIUS = GameRules.register("spawnChunkRadius", GameRules.Category.MISC, GameRules.IntegerValue.create(2, 0, 32, FeatureFlagSet.of(), (minecraftserver, gamerules_gameruleint) -> { + ServerLevel worldserver = minecraftserver; // CraftBukkit - per-world |