Fix tile tick capping variable becoming out of sync

This commit is contained in:
Evan Haskell 2015-04-30 15:54:10 -04:00
parent 47ad0d451e
commit e5752934e4

View File

@ -65,6 +65,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
if (tileentity == null) {
getServer().getLogger().severe("Spigot has detected a null entity and has removed it, preventing a crash");
- iterator.remove();
+ tilesThisCycle--;
+ this.tileEntityList.remove(tileTickPosition--);
continue;
}
@ -74,6 +75,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
if (tileentity.x()) {
- iterator.remove();
+ tilesThisCycle--;
+ this.tileEntityList.remove(tileTickPosition--);
this.h.remove(tileentity);
if (this.isLoaded(tileentity.getPosition())) {