fixed inactive elements when spawning with brush

This commit is contained in:
2024-08-25 19:03:40 +02:00
parent 2d38774341
commit 7388e1a2d7
5 changed files with 16 additions and 17 deletions

View File

@@ -15,7 +15,6 @@ public class Chunk {
private readonly Image image;
private readonly int sizeX;
private readonly int sizeY;
private int frame;
public Chunk(int x, int y, int index) {
Index = index;
@@ -37,10 +36,9 @@ public class Chunk {
for (int x = 0; x < sizeX; x++) {
for (int y = 0; y < sizeY; y++) {
if (Elements[x,y] != null)
Elements[x,y].Update(frame);
Elements[x,y].Update();
}
}
frame++;
// TODO: enable rain again
// MakeItRain(_main.RainAmount);
}
@@ -127,7 +125,5 @@ public class Chunk {
what.Active = true;
swapTo.Active = true;
what.LastMove = frame;
swapTo.LastMove = frame;
}
}