From d6c1b29d0ac965b19dc7eb29aa0ffd7b13769020 Mon Sep 17 00:00:00 2001 From: Florian Egger Date: Mon, 20 Apr 2026 12:13:32 +0200 Subject: [PATCH] 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 --- src/World.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/World.cpp b/src/World.cpp index d3312f1..789a2f8 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -131,7 +131,7 @@ void World::rearrange () { std::vector 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 ); }