mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Possible fix for #289 [gh#289]
This commit is contained in:
@ -113,7 +113,7 @@ class ChestBlock extends TransparentBlock{
|
||||
"title" => "Chest",
|
||||
));
|
||||
$slots = array();
|
||||
for($s = 0; $s <= CHEST_SLOTS; ++$s){
|
||||
for($s = 0; $s < CHEST_SLOTS; ++$s){
|
||||
$slot = $chest->getSlot($s);
|
||||
if($slot->getID() > 0 and $slot->count > 0){
|
||||
$slots[] = $slot;
|
||||
|
Reference in New Issue
Block a user