fixed inactivity timer

This commit is contained in:
2025-04-17 20:21:24 +02:00
parent 71db6513f2
commit 5045b4421e
2 changed files with 6 additions and 0 deletions

View File

@@ -157,7 +157,9 @@ public class Chunk {
swapTo.Chunk.Elements[swapTo.Position.X, swapTo.Position.Y] = swapTo;
what.Active = true;
what.Moved();
swapTo.Active = true;
swapTo.Moved();
}
public override string ToString() {

View File

@@ -110,4 +110,8 @@ public class Element {
this.color = color;
}
public void Moved() {
lastMove = Engine.GetFramesDrawn();
}
}