mirror of
https://github.com/PaperMC/Paper.git
synced 2025-09-03 13:53:51 -07:00
Fix tile tick capping variable becoming out of sync
This commit is contained in:
@@ -65,6 +65,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
if (tileentity == null) {
|
if (tileentity == null) {
|
||||||
getServer().getLogger().severe("Spigot has detected a null entity and has removed it, preventing a crash");
|
getServer().getLogger().severe("Spigot has detected a null entity and has removed it, preventing a crash");
|
||||||
- iterator.remove();
|
- iterator.remove();
|
||||||
|
+ tilesThisCycle--;
|
||||||
+ this.tileEntityList.remove(tileTickPosition--);
|
+ this.tileEntityList.remove(tileTickPosition--);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -74,6 +75,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
|
|
||||||
if (tileentity.x()) {
|
if (tileentity.x()) {
|
||||||
- iterator.remove();
|
- iterator.remove();
|
||||||
|
+ tilesThisCycle--;
|
||||||
+ this.tileEntityList.remove(tileTickPosition--);
|
+ this.tileEntityList.remove(tileTickPosition--);
|
||||||
this.h.remove(tileentity);
|
this.h.remove(tileentity);
|
||||||
if (this.isLoaded(tileentity.getPosition())) {
|
if (this.isLoaded(tileentity.getPosition())) {
|
||||||
|
Reference in New Issue
Block a user