Fix a possible edge case with the ticking changes by delaying removal until next tick

This commit is contained in:
Thinkofdeath 2015-02-22 11:08:39 +00:00
parent 7e7840e064
commit 390839a207

View File

@ -32,6 +32,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
}
public World b() {
@@ -0,0 +0,0 @@ public abstract class World implements IBlockAccess {
this.everyoneSleeping();
}
- if (!guardEntityList) { // Spigot - It will get removed after the tick if we are ticking
+ if (false) { // Spigot - It will get removed next tick
int i = entity.ae;
int j = entity.ag;
@@ -0,0 +0,0 @@ public abstract class World implements IBlockAccess {
timings.entityTick.startTiming(); // Spigot
guardEntityList = true; // Spigot