mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
mr_rand(1)
This commit is contained in:
parent
f864e4db38
commit
b5b8783d48
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue