mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
fixed chance
This commit is contained in:
parent
1ce5292981
commit
355c2167d1
3 changed files with 8 additions and 5 deletions
|
|
@ -57,7 +57,7 @@ class GrassBlock extends SolidBlock{
|
|||
ServerAPI::request()->api->entity->drop(new Position($this->x+0.5, $this->y+1, $this->z+0.5, $this->level), BlockAPI::getItem(458,0,1));
|
||||
return;
|
||||
}
|
||||
elseif($chance <= 15){
|
||||
elseif($chance > 1 and $chance <= 16){
|
||||
ServerAPI::request()->api->entity->drop(new Position($this->x+0.5, $this->y+1, $this->z+0.5, $this->level), BlockAPI::getItem(295,0,1));
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue