mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->nbt = $nbt;
|
||||||
|
|
||||||
if(!isset($this->nbt->Entities) or !($this->nbt->Entities instanceof Enum)){
|
if(!isset($this->nbt->Entities) or !($this->nbt->Entities instanceof Enum)){
|
||||||
$this->nbt->Entities = new Enum("Entities", []);
|
$this->nbt->Entities = new Enum("Entities", []);
|
||||||
$this->nbt->Entities->setTagType(NBT::TAG_Compound);
|
$this->nbt->Entities->setTagType(NBT::TAG_Compound);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user