BaseInventory: move setMaxStackSize() to a more sensible place

This commit is contained in:
Dylan K. Taylor 2022-03-22 17:11:48 +00:00
parent 98aa2b9ff9
commit 2c29d272ad
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -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;
}