From df81b365e56ecf5ea7b598bd1c8d777876d15c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=82=A4=EB=A6=AC=ED=86=A0?= Date: Sun, 26 Oct 2014 22:21:21 +0900 Subject: [PATCH] Update BaseInventory.php --- src/pocketmine/inventory/BaseInventory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pocketmine/inventory/BaseInventory.php b/src/pocketmine/inventory/BaseInventory.php index e9e6dd7e33..6353e2ca31 100644 --- a/src/pocketmine/inventory/BaseInventory.php +++ b/src/pocketmine/inventory/BaseInventory.php @@ -126,6 +126,7 @@ abstract class BaseInventory implements Inventory{ return false; }elseif($item->getID() === 0 or $item->getCount() <= 0){ $this->clear($index, $source); + return true; } $holder = $this->getHolder(); @@ -426,4 +427,4 @@ abstract class BaseInventory implements Inventory{ return $this->type; } -} \ No newline at end of file +}