mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 16:49:53 +00:00
Return a bowl when eating stew or soup
This commit is contained in:
parent
7b9edffa47
commit
5ad72b4f49
@ -1888,6 +1888,9 @@ class Player{
|
||||
if($slot->count <= 0){
|
||||
$this->setSlot($this->slot, BlockAPI::getItem(AIR, 0, 0), false);
|
||||
}
|
||||
if($slot->getID() === MUSHROOM_STEW or $slot->getID() === BEETROOT_SOUP){
|
||||
$this->addItem(BOWL, 0, 1, false);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user