Skip to content

Commit bf62e20

Browse files
committed
Fix sleeping chunks
1 parent 08d7026 commit bf62e20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sg2-app/src/cz/hartrik/sg2/app/module/edit/PerformanceTestServices.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,12 @@ public void processorCycleEnd() {
214214
private void fall(World world, Source top, Brush bottom) {
215215
// horní okraj
216216
for (int x = 0; x < world.getWidth(); x++)
217-
world.set(x, 0, top);
217+
world.setAndChange(x, 0, top);
218218

219219
// dolní okraj
220220
final int y = world.getHeight() - 1;
221221
for (int x = 0; x < world.getWidth(); x++)
222-
world.set(x, y, bottom.getElement());
222+
world.setAndChange(x, y, bottom.getElement());
223223
}
224224

225225
private void terrain(World world, Brush bottom) {
@@ -235,7 +235,7 @@ private void terrain(World world, Brush bottom) {
235235
y = Math.min(MAX, y);
236236

237237
for (int j = world.getHeight() - 1; j > y; j--) {
238-
world.set(x, j, bottom.getElement());
238+
world.setAndChange(x, j, bottom.getElement());
239239
}
240240
}
241241
}

0 commit comments

Comments
 (0)