mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09: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,
|
BREAD => 5,
|
||||||
RAW_PORKCHOP => 3,
|
RAW_PORKCHOP => 3,
|
||||||
COOKED_PORKCHOP => 8,
|
COOKED_PORKCHOP => 8,
|
||||||
RAW_BEEF => 3,
|
BEEF => 3,
|
||||||
STEAK => 8,
|
STEAK => 8,
|
||||||
COOKED_CHICKEN => 6,
|
COOKED_CHICKEN => 6,
|
||||||
RAW_CHICKEN => 2,
|
RAW_CHICKEN => 2,
|
||||||
|
|
@ -1956,9 +1956,6 @@ class Player{
|
||||||
CARROT => 4,
|
CARROT => 4,
|
||||||
POTATO => 1,
|
POTATO => 1,
|
||||||
BAKED_POTATO => 6,
|
BAKED_POTATO => 6,
|
||||||
//COOKIE => 2,
|
|
||||||
//COOKED_FISH => 5,
|
|
||||||
//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()])){
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ define("GOLD_CHESTPLATE", 315);
|
||||||
define("GOLD_LEGGINGS", 316);
|
define("GOLD_LEGGINGS", 316);
|
||||||
define("GOLD_BOOTS", 317);
|
define("GOLD_BOOTS", 317);
|
||||||
define("FLINT", 318);
|
define("FLINT", 318);
|
||||||
define("PORKCHOP", 319);
|
define("RAW_PORKCHOP", 319);
|
||||||
define("COOKED_PORKCHOP", 320);
|
define("COOKED_PORKCHOP", 320);
|
||||||
define("PAINTING", 321);
|
define("PAINTING", 321);
|
||||||
define("GOLDEN_APPLE", 322);
|
define("GOLDEN_APPLE", 322);
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ class Item{
|
||||||
APPLE => "AppleItem",
|
APPLE => "AppleItem",
|
||||||
MUSHROOM_STEW => "MushroomStewItem",
|
MUSHROOM_STEW => "MushroomStewItem",
|
||||||
BREAD => "BreadItem",
|
BREAD => "BreadItem",
|
||||||
PORKCHOP => "PorkchopItem",
|
RAW_PORKCHOP => "RawPorkchopItem",
|
||||||
COOKED_PORKCHOP => "CookedPorkchopItem",
|
COOKED_PORKCHOP => "CookedPorkchopItem",
|
||||||
CAKE => "CakeItem",
|
CAKE => "CakeItem",
|
||||||
MELON => "MelonItem",
|
MELON => "MelonItem",
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class PorkItem extends Item{
|
class RawPorkchopItem extends Item{
|
||||||
public function __construct($meta = 0){
|
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