mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
Fixed raw porkchop being inedible
This commit is contained in:
parent
f5ebfc3418
commit
4bd4d42b82
@ -23,10 +23,17 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\item;
|
||||
|
||||
class RawPorkchop extends Item{
|
||||
class RawPorkchop extends Food{
|
||||
public function __construct(int $meta = 0){
|
||||
parent::__construct(self::RAW_PORKCHOP, $meta, "Raw Porkchop");
|
||||
}
|
||||
|
||||
public function getFoodRestore() : int{
|
||||
return 3;
|
||||
}
|
||||
|
||||
public function getSaturationRestore() : float{
|
||||
return 0.6;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user