Skip to content
This repository was archived by the owner on Feb 9, 2021. It is now read-only.

Commit 9834052

Browse files
committed
Fixed items getting added on the same empty slot
1 parent 6d09754 commit 9834052

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pocketmine/inventory/BaseInventory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ public function addItem(...$slots){
280280
if($slot->getCount() <= 0){
281281
unset($itemSlots[$index]);
282282
}
283+
break;
283284
}
284285
}
285286
}

0 commit comments

Comments
 (0)