From 17a3ca066eab806a79add2fed0f3240251d83103 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 29 Jul 2019 17:50:02 +0100 Subject: [PATCH] fix wrong type for Fuel tag on brewing stand --- src/pocketmine/block/tile/BrewingStand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/block/tile/BrewingStand.php b/src/pocketmine/block/tile/BrewingStand.php index 0fc0b5118..6c4a02c84 100644 --- a/src/pocketmine/block/tile/BrewingStand.php +++ b/src/pocketmine/block/tile/BrewingStand.php @@ -38,7 +38,7 @@ class BrewingStand extends Spawnable implements Container, Nameable{ private const TAG_BREW_TIME = "BrewTime"; //TAG_Short private const TAG_BREW_TIME_PE = "CookTime"; //TAG_Short private const TAG_MAX_FUEL_TIME = "FuelTotal"; //TAG_Short - private const TAG_REMAINING_FUEL_TIME = "Fuel"; //TAG_Short + private const TAG_REMAINING_FUEL_TIME = "Fuel"; //TAG_Byte private const TAG_REMAINING_FUEL_TIME_PE = "FuelAmount"; //TAG_Short /** @var BrewingStandInventory */ @@ -66,7 +66,7 @@ class BrewingStand extends Spawnable implements Container, Nameable{ $this->brewTime = $nbt->getShort(self::TAG_BREW_TIME, $nbt->getShort(self::TAG_BREW_TIME_PE, 0)); $this->maxFuelTime = $nbt->getShort(self::TAG_MAX_FUEL_TIME, 0); - $this->remainingFuelTime = $nbt->getShort(self::TAG_REMAINING_FUEL_TIME, $nbt->getShort(self::TAG_REMAINING_FUEL_TIME_PE, 0)); + $this->remainingFuelTime = $nbt->getByte(self::TAG_REMAINING_FUEL_TIME, $nbt->getShort(self::TAG_REMAINING_FUEL_TIME_PE, 0)); if($this->maxFuelTime === 0){ $this->maxFuelTime = $this->remainingFuelTime; }