2021-06-12 02:57:04 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
|
|
|
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
|
2022-07-21 21:53:04 +02:00
|
|
|
index 2c8ea4f494c25c107bb0b0b44d84be237f77c2c8..7b3a81876f04c6aff370ac9cc97b0c9270f34a2e 100644
|
2021-06-12 02:57:04 +02:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/Level.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/Level.java
|
2022-06-09 10:51:45 +02:00
|
|
|
@@ -664,9 +664,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable {
|
2021-06-12 02:57:04 +02:00
|
|
|
// 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
|