From 4e59d85cca883a3e3533665bec7ab6588c02a9cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=81=E5=A4=9C=E6=9A=97=E8=8A=92=E4=BD=BF?= <1323471525@qq.com> Date: Wed, 7 Oct 2015 17:04:27 +0800 Subject: [PATCH] Fixed recursive call --- src/pocketmine/inventory/BaseInventory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/inventory/BaseInventory.php b/src/pocketmine/inventory/BaseInventory.php index 4a749b3c3..2e1d73ded 100644 --- a/src/pocketmine/inventory/BaseInventory.php +++ b/src/pocketmine/inventory/BaseInventory.php @@ -378,7 +378,7 @@ public function getHolder(){ } public function setMaxStackSize($size){ - $this->setMaxStackSize($size); + $this->maxStackSize = (int) $size; } public function open(Player $who){