mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 01:09:44 +00:00
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:
parent
857092cf65
commit
41039cecc1
@ -39,9 +39,7 @@ use pocketmine\world\World;
|
||||
use function max;
|
||||
|
||||
class Furnace extends Spawnable implements Container, Nameable{
|
||||
use NameableTrait {
|
||||
addAdditionalSpawnData as addNameSpawnData;
|
||||
}
|
||||
use NameableTrait;
|
||||
use ContainerTrait;
|
||||
|
||||
public const TAG_BURN_TIME = "BurnTime";
|
||||
@ -222,11 +220,4 @@ class Furnace extends Spawnable implements Container, Nameable{
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user