mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
22 lines
1.3 KiB
Diff
22 lines
1.3 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Zach Brown <1254957+zachbr@users.noreply.github.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
|
||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||
|
--- a/src/main/java/net/minecraft/world/level/Level.java
|
||
|
+++ b/src/main/java/net/minecraft/world/level/Level.java
|
||
|
@@ -0,0 +0,0 @@ public abstract class Level implements LevelAccessor, AutoCloseable {
|
||
|
// Spigot start
|
||
|
// Iterator iterator = this.tileEntityListTick.iterator();
|
||
|
int tilesThisCycle = 0;
|
||
|
- for (tileLimiter.initTick();
|
||
|
- tilesThisCycle < tickableBlockEntities.size() && (tilesThisCycle % 10 != 0 || tileLimiter.shouldContinue());
|
||
|
- tileTickPosition++, tilesThisCycle++) {
|
||
|
+ for (tileTickPosition = 0; tileTickPosition < tickableBlockEntities.size(); tileTickPosition++) { // Paper - Disable tick limiters
|
||
|
tileTickPosition = (tileTickPosition < tickableBlockEntities.size()) ? tileTickPosition : 0;
|
||
|
BlockEntity tileentity = (BlockEntity) this.tickableBlockEntities.get(tileTickPosition);
|
||
|
// Spigot start
|