mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Unnecessary return/continue
This commit is contained in:
parent
e2dae67a1c
commit
d3f5386812
5 changed files with 5 additions and 10 deletions
|
|
@ -45,8 +45,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(295,0,1));
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
public static function onRandomTick(Level $level, $x, $y, $z){
|
||||
if(!StaticBlock::getIsTransparent($level->level->getBlockID($x, $y + 1, $z)) && mt_rand(0, 2) == 1){
|
||||
$level->fastSetBlockUpdate($x, $y, $z, DIRT, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue