fixed bugs 71,72,43 and 32

This commit is contained in:
GameHerobrine 2022-09-06 19:22:54 +03:00
parent 7fb11d97fd
commit d02c98b2b3
7 changed files with 31 additions and 19 deletions

View file

@ -57,9 +57,11 @@ class BeetrootBlock extends FlowableBlock{
$drops = array();
if($this->meta >= 0x07){
$drops[] = array(BEETROOT, 0, 1);
$drops[] = array(BEETROOT_SEEDS, 0, mt_rand(0, 3));
}else{
$drops[] = array(BEETROOT_SEEDS, 0, 1);
}
for($i = 0; $i < 3; ++$i){
if(mt_rand(0,15) <= $this->meta){ //a way from 1.4.7
$drops[] = array(BEETROOT_SEEDS, 0, 1);
}
}
return $drops;
}