diff options
Diffstat (limited to 'patches/server/0052-Disable-spigot-tick-limiters.patch')
-rw-r--r-- | patches/server/0052-Disable-spigot-tick-limiters.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/server/0052-Disable-spigot-tick-limiters.patch b/patches/server/0052-Disable-spigot-tick-limiters.patch new file mode 100644 index 0000000000..1a8fb27a07 --- /dev/null +++ b/patches/server/0052-Disable-spigot-tick-limiters.patch @@ -0,0 +1,21 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Zach Brown <[email protected]> +Date: Wed, 2 Mar 2016 23:45:17 -0600 +Subject: [PATCH] Disable spigot tick limiters + + +diff --git a/src/main/java/net/minecraft/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java +index 7e6680d0618173e23d323b4b29f0a2fc966789e7..d8621149add06021d594415e079771b6fd57cc3f 100644 +--- a/src/main/java/net/minecraft/world/level/Level.java ++++ b/src/main/java/net/minecraft/world/level/Level.java +@@ -702,9 +702,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable { + boolean flag = this.tickRateManager().runsNormally(); + + int tilesThisCycle = 0; +- for (this.tileLimiter.initTick(); +- tilesThisCycle < this.blockEntityTickers.size() && (tilesThisCycle % 10 != 0 || this.tileLimiter.shouldContinue()); +- this.tileTickPosition++, tilesThisCycle++) { ++ for (tileTickPosition = 0; tileTickPosition < this.blockEntityTickers.size(); tileTickPosition++) { // Paper - Disable tick limiters + this.tileTickPosition = (this.tileTickPosition < this.blockEntityTickers.size()) ? this.tileTickPosition : 0; + TickingBlockEntity tickingblockentity = (TickingBlockEntity) this.blockEntityTickers.get(this.tileTickPosition); + // Spigot end |