diff --git a/src/pocketmine/tile/FlowerPot.php b/src/pocketmine/tile/FlowerPot.php index 9cdea6a09..c2f6f0cb0 100644 --- a/src/pocketmine/tile/FlowerPot.php +++ b/src/pocketmine/tile/FlowerPot.php @@ -26,11 +26,9 @@ namespace pocketmine\tile; use pocketmine\item\Item; use pocketmine\item\ItemFactory; use pocketmine\level\Level; -use pocketmine\math\Vector3; use pocketmine\nbt\tag\CompoundTag; use pocketmine\nbt\tag\IntTag; use pocketmine\nbt\tag\ShortTag; -use pocketmine\Player; class FlowerPot extends Spawnable{ public const TAG_ITEM = "item"; @@ -92,9 +90,4 @@ class FlowerPot extends Spawnable{ $nbt->setTag($this->namedtag->getTag(self::TAG_ITEM)); $nbt->setTag($this->namedtag->getTag(self::TAG_ITEM_DATA)); } - - protected static function createAdditionalNBT(CompoundTag $nbt, Vector3 $pos, ?int $face = null, ?Item $item = null, ?Player $player = null) : void{ - $nbt->setShort(self::TAG_ITEM, 0); - $nbt->setInt(self::TAG_ITEM_DATA, 0); - } } diff --git a/src/pocketmine/tile/ItemFrame.php b/src/pocketmine/tile/ItemFrame.php index a2cec49ff..6cae86e32 100644 --- a/src/pocketmine/tile/ItemFrame.php +++ b/src/pocketmine/tile/ItemFrame.php @@ -26,11 +26,9 @@ namespace pocketmine\tile; use pocketmine\item\Item; use pocketmine\item\ItemFactory; use pocketmine\level\Level; -use pocketmine\math\Vector3; use pocketmine\nbt\tag\ByteTag; use pocketmine\nbt\tag\CompoundTag; use pocketmine\nbt\tag\FloatTag; -use pocketmine\Player; class ItemFrame extends Spawnable{ public const TAG_ITEM_ROTATION = "ItemRotation"; @@ -97,9 +95,4 @@ class ItemFrame extends Spawnable{ $nbt->setTag($this->namedtag->getTag(self::TAG_ITEM)); } } - - protected static function createAdditionalNBT(CompoundTag $nbt, Vector3 $pos, ?int $face = null, ?Item $item = null, ?Player $player = null) : void{ - $nbt->setFloat(self::TAG_ITEM_DROP_CHANCE, 1.0); - $nbt->setByte(self::TAG_ITEM_ROTATION, 0); - } } diff --git a/src/pocketmine/tile/Sign.php b/src/pocketmine/tile/Sign.php index 678a3d5da..25978e42a 100644 --- a/src/pocketmine/tile/Sign.php +++ b/src/pocketmine/tile/Sign.php @@ -171,13 +171,8 @@ class Sign extends Spawnable{ } protected static function createAdditionalNBT(CompoundTag $nbt, Vector3 $pos, ?int $face = null, ?Item $item = null, ?Player $player = null) : void{ - for($i = 1; $i <= 4; ++$i){ - $nbt->setString(sprintf(self::TAG_TEXT_LINE, $i), ""); - } - if($player !== null){ $nbt->setString(self::TAG_CREATOR, $player->getRawUniqueId()); } } - }