Fixed InventoryHelpersTrait::addItem() cannot add items with a count greater than maxstack (#4283)

This commit is contained in:
aieuo
2021-06-27 00:48:53 +09:00
committed by GitHub
parent 444d902990
commit a6039ad733
2 changed files with 18 additions and 1 deletions

View File

@ -186,7 +186,9 @@ trait InventoryHelpersTrait{
$item = clone $slot;
$item->setCount($amount);
$this->setItem($slotIndex, $item);
break;
if($slot->getCount() <= 0){
break;
}
}
}