mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Merge branch '0.9.5' of https://github.com/kotyaralih/NostalgiaCore into 0.9.5
This commit is contained in:
commit
f3a7fa538d
7 changed files with 241 additions and 11 deletions
|
|
@ -58,13 +58,11 @@ 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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue