Potion: Restrict item stack size to 1

This commit is contained in:
Dylan K. Taylor 2017-12-10 20:16:42 +00:00
parent a842a5319f
commit 375243860e

View File

@ -34,6 +34,10 @@ class Potion extends Item{
return true;
}
public function getMaxStackSize() : int{
return 1;
}
public function onConsume(Entity $entity){
// TODO: Implement potions
}