From c7f578f2972256c34dac1ddda4643e1ed7269301 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 18 Nov 2014 13:57:03 +0100 Subject: [PATCH] Possible fix for #2297 --- src/pocketmine/tile/Sign.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)