Remove leftover line from spigots tick limiters
Looking over the code, this appears to be one "high risk but hopefully unlikely that plugins are causing this to break", this line is however redundant leftovers from spigots tick limiter patch, which should be doing nothing as-is.
This commit is contained in:
@@ -5,7 +5,7 @@ Subject: [PATCH] Disable spigot tick limiters
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
|
||||
index 5788ec6f6..5ff06d247 100644
|
||||
index 20990cbfd..3012580e8 100644
|
||||
--- a/src/main/java/net/minecraft/server/World.java
|
||||
+++ b/src/main/java/net/minecraft/server/World.java
|
||||
@@ -0,0 +0,0 @@ public abstract class World implements IEntityAccess, GeneratorAccess, IIBlockAc
|
||||
@@ -16,13 +16,14 @@ index 5788ec6f6..5ff06d247 100644
|
||||
- for (entityLimiter.initTick();
|
||||
- entitiesThisCycle < entityList.size() && (entitiesThisCycle % 10 != 0 || entityLimiter.shouldContinue());
|
||||
- tickPosition++, entitiesThisCycle++) {
|
||||
- tickPosition = (tickPosition < entityList.size()) ? tickPosition : 0;
|
||||
+ // Paper start - Disable tick limiters
|
||||
+ //if (tickPosition < 0) tickPosition = 0;
|
||||
+ for (tickPosition = 0; tickPosition < entityList.size(); tickPosition++) {
|
||||
+ // Paper end
|
||||
tickPosition = (tickPosition < entityList.size()) ? tickPosition : 0;
|
||||
entity = (Entity) this.entityList.get(this.tickPosition);
|
||||
// CraftBukkit end
|
||||
Entity entity1 = entity.getVehicle();
|
||||
@@ -0,0 +0,0 @@ public abstract class World implements IEntityAccess, GeneratorAccess, IIBlockAc
|
||||
// Spigot start
|
||||
// Iterator iterator = this.tileEntityListTick.iterator();
|
||||
|
||||
Reference in New Issue
Block a user