using bonemeal on crops will not instantly grow them(tested on 0.8.1)

This commit is contained in:
GameHerobrine 2022-05-09 18:03:55 +03:00
parent d9e84bf1eb
commit 34329ea493
6 changed files with 12 additions and 12 deletions

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);

View file

@ -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);