mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
Some condition simplifications suggested by static analysis
This commit is contained in:
@ -213,11 +213,7 @@ class Chest extends Spawnable implements InventoryHolder, Container, Nameable{
|
||||
}
|
||||
|
||||
public function isPaired(){
|
||||
if(!isset($this->namedtag->pairx) or !isset($this->namedtag->pairz)){
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return !(!isset($this->namedtag->pairx) or !isset($this->namedtag->pairz));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user