mr_rand(1)

This commit is contained in:
GameHerobrine 2023-01-24 18:50:28 +03:00
parent f864e4db38
commit b5b8783d48
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ class CarrotBlock extends FlowableBlock{
public function getDrops(Item $item, Player $player){
$drops = array();
if($this->meta >= 0x07){
$drops[] = array(CARROT, 0, mt_rand(1));
$drops[] = array(CARROT, 0, mt_rand(1, 4));
}
for($i = 0; $i < 3; ++$i){
if(mt_rand(0,15) <= $this->meta){ //a way from 1.4.7