mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
Removed fish from Player eating
This commit is contained in:
parent
08ed5dbfac
commit
ee3ae561b8
@ -1591,8 +1591,8 @@ class Player{
|
|||||||
MELON_SLICE => 2,
|
MELON_SLICE => 2,
|
||||||
GOLDEN_APPLE => 10,
|
GOLDEN_APPLE => 10,
|
||||||
//COOKIE => 2,
|
//COOKIE => 2,
|
||||||
COOKED_FISH => 5,
|
//COOKED_FISH => 5,
|
||||||
RAW_FISH => 2,
|
//RAW_FISH => 2,
|
||||||
);
|
);
|
||||||
$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…
x
Reference in New Issue
Block a user