mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
Fix tile tick capping variable becoming out of sync
This commit is contained in:
parent
47ad0d451e
commit
e5752934e4
@ -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())) {
|
||||
|
Loading…
Reference in New Issue
Block a user