bugfix: when checking last tile update in calculate clusters and name layer

This commit is contained in:
Evan
2024-12-12 20:31:08 -08:00
parent 26024dd623
commit 939761fc76
4 changed files with 24 additions and 22 deletions
+2 -2
View File
@@ -65,8 +65,8 @@ export class PlayerExecution implements Execution {
if (ticks - this.lastCalc > this.ticksPerClusterCalc) {
this.lastCalc = ticks
if (ticks - this.player.lastTileChange() < this.ticksPerClusterCalc) {
if (this.player.lastTileChange() > this.lastCalc) {
this.lastCalc = ticks
const start = performance.now()
this.removeClusters()
const end = performance.now()