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

@ -46,7 +46,7 @@ class MelonStem extends Crops{
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;