mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-14 23:45:34 +00:00
Merge 'stable' into 'minor-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/15598290427
This commit is contained in:
commit
bd39caccb0
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user