mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-14 15:35:31 +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){
|
||||
$layer->collectGarbage();
|
||||
|
||||
foreach($layer->getPalette() as $p){
|
||||
if($p !== $this->emptyBlockId){
|
||||
$cleanedLayers[] = $layer;
|
||||
continue 2;
|
||||
}
|
||||
if($layer->getBitsPerBlock() !== 0 || $layer->get(0, 0, 0) !== $this->emptyBlockId){
|
||||
$cleanedLayers[] = $layer;
|
||||
}
|
||||
}
|
||||
$this->blockLayers = $cleanedLayers;
|
||||
|
Loading…
x
Reference in New Issue
Block a user