SimpleCommandMap: Command->getLabel() never returns null

This commit is contained in:
Dylan K. Taylor 2020-02-05 20:33:27 +00:00
parent 0d19f6c968
commit faef4e8736

View File

@ -186,7 +186,7 @@ class SimpleCommandMap implements CommandMap{
return false;
}
if(isset($this->knownCommands[$label]) and $this->knownCommands[$label]->getLabel() !== null and $this->knownCommands[$label]->getLabel() === $label){
if(isset($this->knownCommands[$label]) and $this->knownCommands[$label]->getLabel() === $label){
return false;
}