mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Fixed crash on player death
This commit is contained in:
@ -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; });
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user