aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0048-Disable-spigot-tick-limiters.patch
diff options
context:
space:
mode:
authorNoah van der Aa <[email protected]>2023-09-21 21:54:46 +0200
committerNoah van der Aa <[email protected]>2023-09-21 21:54:46 +0200
commit20253f478fb4b1178de144f0fe9bbac7db9e04a8 (patch)
tree0c76de600ae2002a7d69af73bbda16fefc90fa61 /patches/server/0048-Disable-spigot-tick-limiters.patch
parent2b72b74a36b9e4009bbdb5a30f4b9ad9020d5594 (diff)
downloadPaper-20253f478fb4b1178de144f0fe9bbac7db9e04a8.tar.gz
Paper-20253f478fb4b1178de144f0fe9bbac7db9e04a8.zip
more more work
Diffstat (limited to 'patches/server/0048-Disable-spigot-tick-limiters.patch')
-rw-r--r--patches/server/0048-Disable-spigot-tick-limiters.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/server/0048-Disable-spigot-tick-limiters.patch b/patches/server/0048-Disable-spigot-tick-limiters.patch
new file mode 100644
index 0000000000..0920c8b50e
--- /dev/null
+++ b/patches/server/0048-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 0a7a354c085655c243fdf94c7dc82cdc95b3987a..42e81640354c2679570823347b28ee1155e7a00e 100644
+--- a/src/main/java/net/minecraft/world/level/Level.java
++++ b/src/main/java/net/minecraft/world/level/Level.java
+@@ -689,9 +689,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable {
+ // Spigot start
+ // Iterator iterator = this.blockEntityTickers.iterator();
+ 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(tileTickPosition);
+ // Spigot start