diff --git a/src/material/block/plant/Beetroot.php b/src/material/block/plant/Beetroot.php index 7332ce4f..6b5372ab 100644 --- a/src/material/block/plant/Beetroot.php +++ b/src/material/block/plant/Beetroot.php @@ -40,8 +40,8 @@ class BeetrootBlock extends FlowableBlock{ if($item->getID() === DYE and $item->getMetadata() === 0x0F){ //Bonemeal $this->meta += mt_rand(0, 3) + 2; if ($this->meta > 7) { - $this->meta = 7; - } + $this->meta = 7; + } $this->level->setBlock($this, $this, true, false, true); if(($player->gamemode & 0x01) === 0){ $player->removeItem(DYE,0x0F,1); diff --git a/src/material/block/plant/Carrot.php b/src/material/block/plant/Carrot.php index a0259743..ff72b88a 100644 --- a/src/material/block/plant/Carrot.php +++ b/src/material/block/plant/Carrot.php @@ -40,8 +40,8 @@ class CarrotBlock extends FlowableBlock{ if($item->getID() === DYE and $item->getMetadata() === 0x0F){ //Bonemeal $this->meta += mt_rand(0, 3) + 2; if ($this->meta > 7) { - $this->meta = 7; - } + $this->meta = 7; + } $this->level->setBlock($this, $this, true, false, true); if(($player->gamemode & 0x01) === 0){ $player->removeItem(DYE,0x0F,1); diff --git a/src/material/block/plant/MelonStem.php b/src/material/block/plant/MelonStem.php index 6c3db3e2..3ca92ad9 100644 --- a/src/material/block/plant/MelonStem.php +++ b/src/material/block/plant/MelonStem.php @@ -71,8 +71,8 @@ class MelonStemBlock extends FlowableBlock{ if($item->getID() === DYE and $item->getMetadata() === 0x0F){ //Bonemeal $this->meta += mt_rand(0, 3) + 2; if ($this->meta > 7) { - $this->meta = 7; - } + $this->meta = 7; + } $this->level->setBlock($this, $this, true, false, true); if(($player->gamemode & 0x01) === 0){ $player->removeItem(DYE,0x0F,1); diff --git a/src/material/block/plant/PotatoBlock.php b/src/material/block/plant/PotatoBlock.php index a943b48b..562b7954 100644 --- a/src/material/block/plant/PotatoBlock.php +++ b/src/material/block/plant/PotatoBlock.php @@ -40,8 +40,8 @@ class PotatoBlock extends FlowableBlock{ if($item->getID() === DYE and $item->getMetadata() === 0x0F){ //Bonemeal $this->meta += mt_rand(0, 3) + 2; if ($this->meta > 7) { - $this->meta = 7; - } + $this->meta = 7; + } $this->level->setBlock($this, $this, true, false, true); if(($player->gamemode & 0x01) === 0){ $player->removeItem(DYE,0x0F,1); diff --git a/src/material/block/plant/PumpkinStem.php b/src/material/block/plant/PumpkinStem.php index 0a6ff839..8e0a2aa1 100644 --- a/src/material/block/plant/PumpkinStem.php +++ b/src/material/block/plant/PumpkinStem.php @@ -71,8 +71,8 @@ class PumpkinStemBlock extends FlowableBlock{ if($item->getID() === DYE and $item->getMetadata() === 0x0F){ //Bonemeal $this->meta += mt_rand(0, 3) + 2; if ($this->meta > 7) { - $this->meta = 7; - } + $this->meta = 7; + } $this->level->setBlock($this, $this, true, false, true); if(($player->gamemode & 0x01) === 0){ $player->removeItem(DYE,0x0F,1); diff --git a/src/material/block/plant/Wheat.php b/src/material/block/plant/Wheat.php index 1d23b39e..d29b5b6f 100644 --- a/src/material/block/plant/Wheat.php +++ b/src/material/block/plant/Wheat.php @@ -40,8 +40,8 @@ class WheatBlock extends FlowableBlock{ if($item->getID() === DYE and $item->getMetadata() === 0x0F){ //Bonemeal $this->meta += mt_rand(0, 3) + 2; if ($this->meta > 7) { - $this->meta = 7; - } + $this->meta = 7; + } $this->level->setBlock($this, $this, true, false, true); if(($player->gamemode & 0x01) === 0){ $player->removeItem(DYE,0x0F,1);