mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Fixed #1530 Container tiles not getting imported right when they are empty
This commit is contained in:
@ -45,6 +45,11 @@ class Furnace extends Tile implements InventoryHolder, Container{
|
||||
$this->inventory->setItem($i, $this->getItem($i));
|
||||
}
|
||||
|
||||
if(!isset($this->namedtag->Items) or !($this->namedtag->Items instanceof Enum)){
|
||||
$this->namedtag->Items = new Enum("Inventory", []);
|
||||
$this->namedtag->Items->setTagType(NBT::TAG_Compound);
|
||||
}
|
||||
|
||||
if(!isset($this->namedtag->BurnTime) or $this->namedtag["BurnTime"] < 0){
|
||||
$this->namedtag->BurnTime = new Short("BurnTime", 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user