mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
fixing item update
This commit is contained in:
parent
56d0ab5e76
commit
faca65010d
5 changed files with 5 additions and 8 deletions
|
|
@ -1946,7 +1946,7 @@ class Player{
|
|||
BREAD => 5,
|
||||
RAW_PORKCHOP => 3,
|
||||
COOKED_PORKCHOP => 8,
|
||||
RAW_BEEF => 3,
|
||||
BEEF => 3,
|
||||
STEAK => 8,
|
||||
COOKED_CHICKEN => 6,
|
||||
RAW_CHICKEN => 2,
|
||||
|
|
@ -1956,9 +1956,6 @@ class Player{
|
|||
CARROT => 4,
|
||||
POTATO => 1,
|
||||
BAKED_POTATO => 6,
|
||||
//COOKIE => 2,
|
||||
//COOKED_FISH => 5,
|
||||
//RAW_FISH => 2,
|
||||
);
|
||||
$slot = $this->getSlot($this->slot);
|
||||
if($this->entity->getHealth() < 20 and isset($items[$slot->getID()])){
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ define("GOLD_CHESTPLATE", 315);
|
|||
define("GOLD_LEGGINGS", 316);
|
||||
define("GOLD_BOOTS", 317);
|
||||
define("FLINT", 318);
|
||||
define("PORKCHOP", 319);
|
||||
define("RAW_PORKCHOP", 319);
|
||||
define("COOKED_PORKCHOP", 320);
|
||||
define("PAINTING", 321);
|
||||
define("GOLDEN_APPLE", 322);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class Item{
|
|||
APPLE => "AppleItem",
|
||||
MUSHROOM_STEW => "MushroomStewItem",
|
||||
BREAD => "BreadItem",
|
||||
PORKCHOP => "PorkchopItem",
|
||||
RAW_PORKCHOP => "RawPorkchopItem",
|
||||
COOKED_PORKCHOP => "CookedPorkchopItem",
|
||||
CAKE => "CakeItem",
|
||||
MELON => "MelonItem",
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
class PorkItem extends Item{
|
||||
class RawPorkchopItem extends Item{
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(PORK, 0, "Pork");
|
||||
parent::__construct(RAW_PORKCHOP, 0, "Raw Porkchop");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue