This commit is contained in:
GameHerobrine 2023-02-23 15:37:07 +03:00
parent e4d1898613
commit 3e3a020d2e
2 changed files with 12 additions and 14 deletions

View file

@ -58,14 +58,13 @@ class WheatBlock extends FlowableBlock{
$drops = [];
if($this->meta >= 0x07){
$drops[] = [WHEAT, 0, 1];
}else{
for($i = 0; $i < 3; ++$i){
if(mt_rand(0, 15) <= $this->meta){ //a way from 1.4.7
$drops[] = [WHEAT_SEEDS, 0, 1];
}
}
}
for($i = 0; $i < 3; ++$i){
if(mt_rand(0, 15) <= $this->meta){ //a way from 1.4.7
$drops[] = [WHEAT_SEEDS, 0, 1];
}
}
return $drops;
}
}