diff --git a/src/pocketmine/inventory/BaseInventory.php b/src/pocketmine/inventory/BaseInventory.php index 12cd43882..dee23dd9c 100644 --- a/src/pocketmine/inventory/BaseInventory.php +++ b/src/pocketmine/inventory/BaseInventory.php @@ -385,7 +385,7 @@ abstract class BaseInventory implements Inventory{ } public function setMaxStackSize($size){ - $this->setMaxStackSize($size); + $this->maxStackSize = (int) $size; } public function open(Player $who){