From 043ae487de183d57904071ea97bf026107b74fdb Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 24 Sep 2017 10:33:18 +0100 Subject: [PATCH] Fixed some inconsistent uses of `new ShortTag` vs setValue() in Furnace --- src/pocketmine/tile/Furnace.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/tile/Furnace.php b/src/pocketmine/tile/Furnace.php index 33960d589..8c130d27d 100644 --- a/src/pocketmine/tile/Furnace.php +++ b/src/pocketmine/tile/Furnace.php @@ -195,7 +195,7 @@ class Furnace extends Spawnable implements InventoryHolder, Container, Nameable{ $this->namedtag->MaxTime->setValue($ev->getBurnTime()); $this->namedtag->BurnTime->setValue($ev->getBurnTime()); - $this->namedtag->BurnTicks = new ShortTag("BurnTicks", 0); + $this->namedtag->BurnTicks->setValue(0); if($this->getBlock()->getId() === Item::FURNACE){ $this->getLevel()->setBlock($this, BlockFactory::get(Block::BURNING_FURNACE, $this->getBlock()->getDamage()), true); } @@ -230,7 +230,7 @@ class Furnace extends Spawnable implements InventoryHolder, Container, Nameable{ if($this->namedtag->BurnTime->getValue() > 0){ $this->namedtag->BurnTime->setValue($this->namedtag->BurnTime->getValue() - 1); - $this->namedtag->BurnTicks = new ShortTag("BurnTicks", (int) ceil($this->namedtag->BurnTime->getValue() / $this->namedtag->MaxTime->getValue() * 200)); + $this->namedtag->BurnTicks->setValue((int) ceil($this->namedtag->BurnTime->getValue() / $this->namedtag->MaxTime->getValue() * 200)); if($smelt instanceof FurnaceRecipe and $canSmelt){ $this->namedtag->CookTime->setValue($this->namedtag->CookTime->getValue() + 1);