mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
Potion: Restrict item stack size to 1
This commit is contained in:
parent
a842a5319f
commit
375243860e
@ -34,6 +34,10 @@ class Potion extends Item{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getMaxStackSize() : int{
|
||||
return 1;
|
||||
}
|
||||
|
||||
public function onConsume(Entity $entity){
|
||||
// TODO: Implement potions
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user