Merge 'stable' into 'minor-next'

Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/15598290427
This commit is contained in:
pmmp-admin-bot[bot] 2025-06-12 00:02:56 +00:00
commit bd39caccb0

View File

@ -134,11 +134,8 @@ class SubChunk{
foreach($this->blockLayers as $layer){ foreach($this->blockLayers as $layer){
$layer->collectGarbage(); $layer->collectGarbage();
foreach($layer->getPalette() as $p){ if($layer->getBitsPerBlock() !== 0 || $layer->get(0, 0, 0) !== $this->emptyBlockId){
if($p !== $this->emptyBlockId){
$cleanedLayers[] = $layer; $cleanedLayers[] = $layer;
continue 2;
}
} }
} }
$this->blockLayers = $cleanedLayers; $this->blockLayers = $cleanedLayers;