Fixed crash on player death

This commit is contained in:
Dylan K. Taylor 2017-08-09 13:34:25 +01:00
parent 260179197b
commit 36d47a33f3

View File

@ -103,7 +103,7 @@ abstract class BaseInventory implements Inventory{
}
public function getContents() : array{
return $this->slots->toArray();
return array_filter($this->slots->toArray(), function(Item $item = null){ return $item !== null; });
}
/**