mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
Sign: fixed merge leftovers from 6424dc9c82e6137c00c178f3322cdb1a931cd82f
This commit is contained in:
parent
84cf7c11e6
commit
7ea1f4fc91
@ -84,16 +84,16 @@ class Sign extends Spawnable{
|
||||
*/
|
||||
public function setText(?string $line1 = "", ?string $line2 = "", ?string $line3 = "", ?string $line4 = "") : void{
|
||||
if($line1 !== null){
|
||||
$this->setLine(0, $line1, false);
|
||||
$this->setLine(0, $line1);
|
||||
}
|
||||
if($line2 !== null){
|
||||
$this->setLine(1, $line2, false);
|
||||
$this->setLine(1, $line2);
|
||||
}
|
||||
if($line3 !== null){
|
||||
$this->setLine(2, $line3, false);
|
||||
$this->setLine(2, $line3);
|
||||
}
|
||||
if($line4 !== null){
|
||||
$this->setLine(3, $line4, false);
|
||||
$this->setLine(3, $line4);
|
||||
}
|
||||
|
||||
$this->onChanged();
|
||||
|
Loading…
x
Reference in New Issue
Block a user