mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 18:29:46 +00:00
Fixed Anvil chunks not having NBT set
This commit is contained in:
parent
9791071262
commit
f3bdef7513
@ -46,6 +46,8 @@ class Chunk extends BaseChunk{
|
||||
return;
|
||||
}
|
||||
|
||||
$this->nbt = $nbt;
|
||||
|
||||
if(!isset($this->nbt->Entities) or !($this->nbt->Entities instanceof Enum)){
|
||||
$this->nbt->Entities = new Enum("Entities", []);
|
||||
$this->nbt->Entities->setTagType(NBT::TAG_Compound);
|
||||
|
Loading…
x
Reference in New Issue
Block a user