Furnace: remove redundant network properties

these properties are continuously updating when the furnace is active, but they never trigger cache destruction, which means this is sending outdated garbage over the network, which is entirely unnecessary anyway.
This commit is contained in:
Dylan K. Taylor 2019-06-07 14:15:47 +01:00
parent 857092cf65
commit 41039cecc1

View File

@ -39,9 +39,7 @@ use pocketmine\world\World;
use function max; use function max;
class Furnace extends Spawnable implements Container, Nameable{ class Furnace extends Spawnable implements Container, Nameable{
use NameableTrait { use NameableTrait;
addAdditionalSpawnData as addNameSpawnData;
}
use ContainerTrait; use ContainerTrait;
public const TAG_BURN_TIME = "BurnTime"; public const TAG_BURN_TIME = "BurnTime";
@ -222,11 +220,4 @@ class Furnace extends Spawnable implements Container, Nameable{
return $ret; return $ret;
} }
protected function addAdditionalSpawnData(CompoundTag $nbt) : void{
$nbt->setShort(self::TAG_BURN_TIME, $this->burnTime);
$nbt->setShort(self::TAG_COOK_TIME, $this->cookTime);
$this->addNameSpawnData($nbt);
}
} }