mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
Potion: Restrict item stack size to 1
This commit is contained in:
@ -34,6 +34,10 @@ class Potion extends Item{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getMaxStackSize() : int{
|
||||
return 1;
|
||||
}
|
||||
|
||||
public function onConsume(Entity $entity){
|
||||
// TODO: Implement potions
|
||||
}
|
||||
|
Reference in New Issue
Block a user