mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +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) {
|
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())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user