mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 23:59:53 +00:00
Fixed crash on player death
This commit is contained in:
parent
260179197b
commit
36d47a33f3
@ -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; });
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user