Cleaned up bool comparison mess

This commit is contained in:
Dylan K. Taylor
2018-03-19 14:10:55 +00:00
parent 24c5d7557e
commit ac5a91b67e
39 changed files with 141 additions and 141 deletions

View File

@ -53,7 +53,7 @@ class Chest extends Spawnable implements InventoryHolder, Container, Nameable{
}
public function close() : void{
if($this->closed === false){
if(!$this->closed){
$this->inventory->removeAllViewers(true);
if($this->doubleInventory !== null){

View File

@ -91,7 +91,7 @@ class Furnace extends Spawnable implements InventoryHolder, Container, Nameable{
}
public function close() : void{
if($this->closed === false){
if(!$this->closed){
$this->inventory->removeAllViewers(true);
$this->inventory = null;
@ -139,7 +139,7 @@ class Furnace extends Spawnable implements InventoryHolder, Container, Nameable{
}
public function onUpdate() : bool{
if($this->closed === true){
if($this->closed){
return false;
}