Fixed sign bug introduced in #1204 rebase, close #1346

This commit is contained in:
Dylan K. Taylor 2017-09-02 13:12:55 +01:00
parent b071ce9c5a
commit 22d8626e23

View File

@ -62,21 +62,19 @@ class Sign extends Spawnable{
* @param null|string $line2 * @param null|string $line2
* @param null|string $line3 * @param null|string $line3
* @param null|string $line4 * @param null|string $line4
*
* @return bool
*/ */
public function setText($line1 = "", $line2 = "", $line3 = "", $line4 = ""){ public function setText($line1 = "", $line2 = "", $line3 = "", $line4 = ""){
if($line1 !== null){ if($line1 !== null){
$this->namedtag->Text1->setValue("Text1", $line1); $this->namedtag->Text1->setValue($line1);
} }
if($line2 !== null){ if($line2 !== null){
$this->namedtag->Text2->setValue("Text2", $line2); $this->namedtag->Text2->setValue($line2);
} }
if($line3 !== null){ if($line3 !== null){
$this->namedtag->Text3->setValue("Text3", $line3); $this->namedtag->Text3->setValue($line3);
} }
if($line4 !== null){ if($line4 !== null){
$this->namedtag->Text4->setValue("Text4", $line4); $this->namedtag->Text4->setValue($line4);
} }
$this->onChanged(); $this->onChanged();
} }