From 98340522d93e6beb6eea19a1ad945f53a2d5d9d1 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Thu, 27 Nov 2014 20:49:18 +0100 Subject: [PATCH] Fixed items getting added on the same empty slot --- src/pocketmine/inventory/BaseInventory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pocketmine/inventory/BaseInventory.php b/src/pocketmine/inventory/BaseInventory.php index 268c808c7..2249298cd 100644 --- a/src/pocketmine/inventory/BaseInventory.php +++ b/src/pocketmine/inventory/BaseInventory.php @@ -280,6 +280,7 @@ public function addItem(...$slots){ if($slot->getCount() <= 0){ unset($itemSlots[$index]); } + break; } } }