merge with main again

This commit is contained in:
1brucben
2025-04-26 19:31:52 +02:00
4 changed files with 17 additions and 24 deletions
+1 -1
View File
@@ -88,9 +88,9 @@ export class UnitImpl implements Unit {
if (tile == null) {
throw new Error("tile cannot be null");
}
this.mg.removeUnit(this);
this._lastTile = this._tile;
this._tile = tile;
this.mg.removeUnit(this);
this.mg.addUnit(this);
this.mg.addUpdate(this.toUpdate());
}