Merge branch 'php/7.0' into mcpe-1.2

This commit is contained in:
Dylan K. Taylor
2017-09-03 15:02:41 +01:00
16 changed files with 108 additions and 82 deletions

View File

@ -67,8 +67,12 @@ class Chest extends Spawnable implements InventoryHolder, Container, Nameable{
$player->removeWindow($this->getRealInventory());
}
if($this->doubleInventory !== null){
$this->doubleInventory->invalidate();
$this->doubleInventory = null;
}
$this->inventory = null;
$this->doubleInventory = null;
parent::close();
}