Fixed some weak comparisons

This commit is contained in:
Dylan K. Taylor
2017-06-05 21:07:24 +01:00
parent 6ea0eb47ec
commit b7b7bcee4f
6 changed files with 8 additions and 8 deletions

View File

@ -74,7 +74,7 @@ abstract class Crops extends Flowable{
return Level::BLOCK_UPDATE_NORMAL;
}
}elseif($type === Level::BLOCK_UPDATE_RANDOM){
if(mt_rand(0, 2) == 1){
if(mt_rand(0, 2) === 1){
if($this->meta < 0x07){
$block = clone $this;
++$block->meta;