mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
using bonemeal on crops will not instantly grow them(tested on 0.8.1)
This commit is contained in:
parent
d9e84bf1eb
commit
34329ea493
6 changed files with 12 additions and 12 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue