Merge pull request #834 from iTXTech/dog194-speed
Slow the growing speed of CocoaBeans and NetherWart.
This commit is contained in:
commit
a08b2e4787
2 changed files with 2 additions and 2 deletions
|
|
@ -76,7 +76,7 @@ class CocoaBlock extends Solid {
|
|||
return Level::BLOCK_UPDATE_NORMAL;
|
||||
}
|
||||
} elseif ($type === Level::BLOCK_UPDATE_RANDOM) {
|
||||
if (mt_rand(0, 2) === 1) {
|
||||
if (mt_rand(0, 45) === 1) {
|
||||
if ($this->meta < 7) {
|
||||
$block = clone $this;
|
||||
$block->meta += 4;
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class NetherWart extends Flowable{
|
|||
return Level::BLOCK_UPDATE_NORMAL;
|
||||
}
|
||||
}elseif($type === Level::BLOCK_UPDATE_RANDOM){
|
||||
if(mt_rand(0, 1) == 1){//only have 0-3 So maybe slowly
|
||||
if(mt_rand(0, 12) == 1){//only have 0-3 So maybe slowly
|
||||
if($this->meta < 0x03){//0x03
|
||||
$block = clone $this;
|
||||
++$block->meta;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue