mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 16:45:13 +00:00
Tile: remove unnecessary createAdditionalNBT() things
these things are filled in by the tiles' constructors anyway.
This commit is contained in:
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user