mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-04 01:00:38 +00:00
bugfix: when checking last tile update in calculate clusters and name layer
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user