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){