mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
BaseSign: remove redundant condition
This commit is contained in:
parent
22778583cf
commit
cd6abbe0bb
@ -254,7 +254,7 @@ abstract class BaseSign extends Transparent{
|
|||||||
$ev = new SignChangeEvent($this, $author, new SignText(array_map(function(string $line) : string{
|
$ev = new SignChangeEvent($this, $author, new SignText(array_map(function(string $line) : string{
|
||||||
return TextFormat::clean($line, false);
|
return TextFormat::clean($line, false);
|
||||||
}, $text->getLines()), $this->text->getBaseColor(), $this->text->isGlowing()));
|
}, $text->getLines()), $this->text->getBaseColor(), $this->text->isGlowing()));
|
||||||
if($this->waxed || $this->editorEntityRuntimeId === null || $this->editorEntityRuntimeId !== $author->getId()){
|
if($this->waxed || $this->editorEntityRuntimeId !== $author->getId()){
|
||||||
$ev->cancel();
|
$ev->cancel();
|
||||||
}
|
}
|
||||||
$ev->call();
|
$ev->call();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user