readded return in reset spawn pos & some fixes to formatting

This commit is contained in:
GameHerobrine 2024-08-17 16:10:23 +03:00
parent f74e6e0638
commit ed4f820ff3
9 changed files with 25 additions and 24 deletions

View file

@ -80,7 +80,7 @@ class StairBlock extends TransparentBlock{
for($v15 = 0; $v15 < /*count($v11}*/ 2; ++$v15){
$v16 = $v11[$v15];
if($v16 == $v12){
//wat
//wat
}
}
@ -360,4 +360,4 @@ class StairBlock extends TransparentBlock{
return array();
}
}
}
}

View file

@ -45,7 +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;
}
}
}
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);
@ -64,4 +64,4 @@ class GrassBlock extends SolidBlock{
}
}
}
}