mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 03:06:55 +00:00
Added API method Item::canStackWith()
This commit is contained in:
@ -82,7 +82,7 @@ class CraftingManager{
|
||||
|
||||
foreach($items as $i => $item){
|
||||
foreach($result as $otherItem){
|
||||
if($item->equals($otherItem)){
|
||||
if($item->canStackWith($otherItem)){
|
||||
$otherItem->setCount($otherItem->getCount() + $item->getCount());
|
||||
continue 2;
|
||||
}
|
||||
|
Reference in New Issue
Block a user