diff --git a/src/pocketmine/tile/Chest.php b/src/pocketmine/tile/Chest.php index be1344933..fb66179a4 100644 --- a/src/pocketmine/tile/Chest.php +++ b/src/pocketmine/tile/Chest.php @@ -213,7 +213,7 @@ class Chest extends Spawnable implements InventoryHolder, Container, Nameable{ } public function isPaired(){ - return !(!isset($this->namedtag->pairx) or !isset($this->namedtag->pairz)); + return isset($this->namedtag->pairx) and isset($this->namedtag->pairz); } /**