mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 19:55:33 +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){
|
if($slot->count <= 0){
|
||||||
$this->setSlot($this->slot, BlockAPI::getItem(AIR, 0, 0), false);
|
$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;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user