diff --git a/src/constants/ItemIDs.php b/src/constants/ItemIDs.php index 9ad6705a..7595ba60 100755 --- a/src/constants/ItemIDs.php +++ b/src/constants/ItemIDs.php @@ -111,6 +111,7 @@ define("BRICK", 336); define("CLAY", 337); define("SUGARCANE", 338); define("SUGAR_CANE", 338); +define("SUGAR_CANES", 338); define("REED", 338); define("PAPER", 339); define("BOOK", 340); diff --git a/src/material/item/food/CookedChicken.php b/src/material/item/food/CookedChicken.php index 7e9561f4..43631785 100644 --- a/src/material/item/food/CookedChicken.php +++ b/src/material/item/food/CookedChicken.php @@ -20,7 +20,8 @@ */ class CookedChickenItem extends Item{ - public function __construct($meta = 0){ - parent::__construct(COOKED_CHICKEN, 0, "Cooked Chicken"); + public function __construct($meta = 0, $count = 1){ + parent::__construct(COOKED_CHICKEN, 0, $count, "Cooked Chicken"); } + } \ No newline at end of file diff --git a/src/material/item/food/CookedPorkchop.php b/src/material/item/food/CookedPorkchop.php index 9b8eb598..8d3fc229 100644 --- a/src/material/item/food/CookedPorkchop.php +++ b/src/material/item/food/CookedPorkchop.php @@ -20,7 +20,7 @@ */ class CookedPorkchopItem extends Item{ - public function __construct($meta = 0){ - parent::__construct(COOKED_PORKCHOP, 0, "Cooked Porkchop"); + public function __construct($meta = 0, $count = 1){ + parent::__construct(COOKED_PORKCHOP, 0, $count, "Cooked Porkchop"); } } \ No newline at end of file diff --git a/src/material/item/food/Potato.php b/src/material/item/food/Potato.php index 01c15eec..610d96a6 100755 --- a/src/material/item/food/Potato.php +++ b/src/material/item/food/Potato.php @@ -24,4 +24,5 @@ class PotatoItem extends Item{ $this->block = BlockAPI::get(POTATO_BLOCK); parent::__construct(POTATO, 0, $count, "Potato"); } + } \ No newline at end of file diff --git a/src/material/item/food/PumpkinPie.php b/src/material/item/food/PumpkinPie.php index 2d703259..665441bb 100644 --- a/src/material/item/food/PumpkinPie.php +++ b/src/material/item/food/PumpkinPie.php @@ -20,7 +20,8 @@ */ class PumpkinPieItem extends Item{ - public function __construct($meta = 0){ - parent::__construct(PUMPKIN_PIE, 0, "Pumpkin Pie"); + public function __construct($meta = 0, $count = 1){ + parent::__construct(PUMPKIN_PIE, 0, $count, "Pumpkin Pie"); } + } \ No newline at end of file diff --git a/src/material/item/food/RawChicken.php b/src/material/item/food/RawChicken.php index 5a4643f0..19b6c7c5 100644 --- a/src/material/item/food/RawChicken.php +++ b/src/material/item/food/RawChicken.php @@ -20,7 +20,8 @@ */ class RawChickenItem extends Item{ - public function __construct($meta = 0){ - parent::__construct(RAW_CHICKEN, 0, "Raw Chicken"); + public function __construct($meta = 0, $count = 1){ + parent::__construct(RAW_CHICKEN, 0, $count, "Raw Chicken"); } + } \ No newline at end of file diff --git a/src/material/item/food/RawPorkchop.php b/src/material/item/food/RawPorkchop.php index 937d1cb1..54a68784 100644 --- a/src/material/item/food/RawPorkchop.php +++ b/src/material/item/food/RawPorkchop.php @@ -20,7 +20,8 @@ */ class RawPorkchopItem extends Item{ - public function __construct($meta = 0){ - parent::__construct(RAW_PORKCHOP, 0, "Raw Porkchop"); + public function __construct($meta = 0, $count = 1){ + parent::__construct(RAW_PORKCHOP, 0, $count, "Raw Porkchop"); } + } \ No newline at end of file diff --git a/src/material/item/generic/Bone.php b/src/material/item/generic/Bone.php index bdecbd66..63797491 100755 --- a/src/material/item/generic/Bone.php +++ b/src/material/item/generic/Bone.php @@ -20,7 +20,8 @@ */ class BoneItem extends Item{ - public function __construct($meta = 0){ - parent::__construct(BONE, 0, "Bone"); + public function __construct($meta = 0, $count = 1){ + parent::__construct(BONE, 0, $count, "Bone"); } + } \ No newline at end of file diff --git a/src/material/item/generic/Gunpowder.php b/src/material/item/generic/Gunpowder.php index ff79eb28..684befe7 100755 --- a/src/material/item/generic/Gunpowder.php +++ b/src/material/item/generic/Gunpowder.php @@ -20,8 +20,8 @@ */ class GunpowderItem extends Item{ - public function __construct($meta = 0){ - parent::__construct(GUNPOWDER, 0, "Gunpowder"); + public function __construct($meta = 0, $count = 1){ + parent::__construct(GUNPOWDER, 0, $count, "Gunpowder"); } } \ No newline at end of file