Sign: fixed merge leftovers from 6424dc9c82e6137c00c178f3322cdb1a931cd82f

This commit is contained in:
Dylan K. Taylor 2019-02-17 11:10:17 +00:00
parent 84cf7c11e6
commit 7ea1f4fc91

View File

@ -84,16 +84,16 @@ class Sign extends Spawnable{
*/ */
public function setText(?string $line1 = "", ?string $line2 = "", ?string $line3 = "", ?string $line4 = "") : void{ public function setText(?string $line1 = "", ?string $line2 = "", ?string $line3 = "", ?string $line4 = "") : void{
if($line1 !== null){ if($line1 !== null){
$this->setLine(0, $line1, false); $this->setLine(0, $line1);
} }
if($line2 !== null){ if($line2 !== null){
$this->setLine(1, $line2, false); $this->setLine(1, $line2);
} }
if($line3 !== null){ if($line3 !== null){
$this->setLine(2, $line3, false); $this->setLine(2, $line3);
} }
if($line4 !== null){ if($line4 !== null){
$this->setLine(3, $line4, false); $this->setLine(3, $line4);
} }
$this->onChanged(); $this->onChanged();