Only move minable blocks during rearrange

Change condition from != 0 to > 0 in World::rearrange so only
positive (minable) blocks are collected; effect/negative cells remain in
place
This commit is contained in:
2026-04-20 12:13:32 +02:00
parent f45f73cb27
commit d6c1b29d0a
+1 -1
View File
@@ -131,7 +131,7 @@ void World::rearrange () {
std::vector<int> positions;
for ( int z = 0; z < _sizeZ; ++z ) {
if ( _grid[ x ][ y ][ z ] != 0 ) {
if ( _grid[ x ][ y ][ z ] > 0 ) { // only minable blocks; effect cells stay in place
values.push_back ( _grid[ x ][ y ][ z ] );
positions.push_back ( z );
}