mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
beetroot fix
This commit is contained in:
parent
19714543d2
commit
ab83f135f1
1 changed files with 3 additions and 2 deletions
|
|
@ -1823,7 +1823,7 @@ class Player{
|
||||||
}
|
}
|
||||||
switch($packet->event){
|
switch($packet->event){
|
||||||
case 9: //Eating
|
case 9: //Eating
|
||||||
$items = [
|
$items = [ //TODO rewrite
|
||||||
APPLE => 4,
|
APPLE => 4,
|
||||||
MUSHROOM_STEW => 10,
|
MUSHROOM_STEW => 10,
|
||||||
BEETROOT_SOUP => 10,
|
BEETROOT_SOUP => 10,
|
||||||
|
|
@ -1839,7 +1839,8 @@ class Player{
|
||||||
PUMPKIN_PIE => 8,
|
PUMPKIN_PIE => 8,
|
||||||
CARROT => 4,
|
CARROT => 4,
|
||||||
POTATO => 1,
|
POTATO => 1,
|
||||||
BAKED_POTATO => 6
|
BAKED_POTATO => 6,
|
||||||
|
BEETROOT => 1
|
||||||
];
|
];
|
||||||
$slot = $this->getSlot($this->slot);
|
$slot = $this->getSlot($this->slot);
|
||||||
if($this->entity->getHealth() < 20 and isset($items[$slot->getID()])){
|
if($this->entity->getHealth() < 20 and isset($items[$slot->getID()])){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue