Unnecessary "?:"

This commit is contained in:
Sunch 2024-08-17 20:01:40 +08:00
parent 4630481d54
commit 4eb6bd14a2
6 changed files with 9 additions and 9 deletions

View file

@ -383,7 +383,7 @@ class Entity extends Position
* @return boolean
*/
public function isPickable(){
return $this->isPlayer() ? !$this->dead : false;
return $this->isPlayer() && !$this->dead;
}
public function handleLavaMovement(){ //TODO maybe try merging with water?