mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Fixed InventoryHelpersTrait::addItem() cannot add items with a count greater than maxstack (#4283)
This commit is contained in:
@ -186,7 +186,9 @@ trait InventoryHelpersTrait{
|
||||
$item = clone $slot;
|
||||
$item->setCount($amount);
|
||||
$this->setItem($slotIndex, $item);
|
||||
break;
|
||||
if($slot->getCount() <= 0){
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user