diff --git a/src/pocketmine/tile/Sign.php b/src/pocketmine/tile/Sign.php index 98870ddc7..bb23599d8 100644 --- a/src/pocketmine/tile/Sign.php +++ b/src/pocketmine/tile/Sign.php @@ -71,11 +71,11 @@ public function getText(){ public function getSpawnCompound(){ return new Compound("", [ - new String("Text1", $this->namedtag["Text1"]), - new String("Text2", $this->namedtag["Text2"]), - new String("Text3", $this->namedtag["Text3"]), - new String("Text4", $this->namedtag["Text4"]), new String("id", Tile::SIGN), + $this->namedtag->Text1, + $this->namedtag->Text2, + $this->namedtag->Text3, + $this->namedtag->Text4, new Int("x", (int) $this->x), new Int("y", (int) $this->y), new Int("z", (int) $this->z)