BaseSign: remove redundant condition

This commit is contained in:
Dylan K. Taylor 2023-08-21 16:30:16 +01:00
parent 22778583cf
commit cd6abbe0bb
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -254,7 +254,7 @@ abstract class BaseSign extends Transparent{
$ev = new SignChangeEvent($this, $author, new SignText(array_map(function(string $line) : string{
return TextFormat::clean($line, false);
}, $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->call();