diff --git a/src/inventory/BaseInventory.php b/src/inventory/BaseInventory.php index 5700923ac..a19b2b22c 100644 --- a/src/inventory/BaseInventory.php +++ b/src/inventory/BaseInventory.php @@ -55,6 +55,10 @@ abstract class BaseInventory implements Inventory{ return $this->maxStackSize; } + public function setMaxStackSize(int $size) : void{ + $this->maxStackSize = $size; + } + /** * @param Item[] $items */ @@ -323,10 +327,6 @@ abstract class BaseInventory implements Inventory{ } } - public function setMaxStackSize(int $size) : void{ - $this->maxStackSize = $size; - } - public function onOpen(Player $who) : void{ $this->viewers[spl_object_id($who)] = $who; }