Return a bowl when eating stew or soup

This commit is contained in:
Shoghi Cervantes 2013-11-26 15:29:34 +01:00
parent 7b9edffa47
commit 5ad72b4f49

View File

@ -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;
} }