mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
format/anvil: fixed possible type violation on saving chunk
This commit is contained in:
parent
37a8d95464
commit
cf73d74bd0
@ -51,7 +51,7 @@ class Anvil extends McRegion{
|
||||
|
||||
$subChunks = [];
|
||||
foreach($chunk->getSubChunks() as $y => $subChunk){
|
||||
if($subChunk->isEmpty()){
|
||||
if(!($subChunk instanceof SubChunk) or $subChunk->isEmpty()){
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user