mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
readded return in reset spawn pos & some fixes to formatting
This commit is contained in:
parent
f74e6e0638
commit
ed4f820ff3
9 changed files with 25 additions and 24 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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{
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue