mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Cleaned up bool comparison mess
This commit is contained in:
@ -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){
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user