code style fix

This commit is contained in:
Sunch 2025-04-27 20:36:24 +08:00
parent fc5c5625cb
commit 5e8e9330e2
361 changed files with 4766 additions and 4650 deletions

View file

@ -32,33 +32,33 @@ class DirtBlock extends SolidBlock{
}
public static function getGrassInRadius(Level $level, $x, $y, $z){ //umwut (although kinda faster than for loop =D)
if($level->level->getBlockID($x+1, $y, $z+1) == 2) return true;
if($level->level->getBlockID($x+1, $y, $z) == 2) return true;
if($level->level->getBlockID($x+1, $y, $z-1) == 2) return true;
if($level->level->getBlockID($x, $y, $z+1) == 2) return true;
if($level->level->getBlockID($x, $y, $z-1) == 2) return true;
if($level->level->getBlockID($x-1, $y, $z+1) == 2) return true;
if($level->level->getBlockID($x-1, $y, $z) == 2) return true;
if($level->level->getBlockID($x-1, $y, $z-1) == 2) return true;
if($level->level->getBlockID($x + 1, $y, $z + 1) == 2) return true;
if($level->level->getBlockID($x + 1, $y, $z) == 2) return true;
if($level->level->getBlockID($x + 1, $y, $z - 1) == 2) return true;
if($level->level->getBlockID($x, $y, $z + 1) == 2) return true;
if($level->level->getBlockID($x, $y, $z - 1) == 2) return true;
if($level->level->getBlockID($x - 1, $y, $z + 1) == 2) return true;
if($level->level->getBlockID($x - 1, $y, $z) == 2) return true;
if($level->level->getBlockID($x - 1, $y, $z - 1) == 2) return true;
if($level->level->getBlockID($x+1, $y-1, $z+1) == 2) return true;
if($level->level->getBlockID($x+1, $y-1, $z) == 2) return true;
if($level->level->getBlockID($x+1, $y-1, $z-1) == 2) return true;
if($level->level->getBlockID($x, $y-1, $z+1) == 2) return true;
if($level->level->getBlockID($x, $y-1, $z) == 2) return true;
if($level->level->getBlockID($x, $y-1, $z-1) == 2) return true;
if($level->level->getBlockID($x-1, $y-1, $z+1) == 2) return true;
if($level->level->getBlockID($x-1, $y-1, $z) == 2) return true;
if($level->level->getBlockID($x-1, $y-1, $z-1) == 2) return true;
if($level->level->getBlockID($x + 1, $y - 1, $z + 1) == 2) return true;
if($level->level->getBlockID($x + 1, $y - 1, $z) == 2) return true;
if($level->level->getBlockID($x + 1, $y - 1, $z - 1) == 2) return true;
if($level->level->getBlockID($x, $y - 1, $z + 1) == 2) return true;
if($level->level->getBlockID($x, $y - 1, $z) == 2) return true;
if($level->level->getBlockID($x, $y - 1, $z - 1) == 2) return true;
if($level->level->getBlockID($x - 1, $y - 1, $z + 1) == 2) return true;
if($level->level->getBlockID($x - 1, $y - 1, $z) == 2) return true;
if($level->level->getBlockID($x - 1, $y - 1, $z - 1) == 2) return true;
if($level->level->getBlockID($x+1, $y+1, $z+1) == 2) return true;
if($level->level->getBlockID($x+1, $y+1, $z) == 2) return true;
if($level->level->getBlockID($x+1, $y+1, $z-1) == 2) return true;
if($level->level->getBlockID($x, $y+1, $z+1) == 2) return true;
if($level->level->getBlockID($x, $y+1, $z-1) == 2) return true;
if($level->level->getBlockID($x-1, $y+1, $z+1) == 2) return true;
if($level->level->getBlockID($x-1, $y+1, $z) == 2) return true;
if($level->level->getBlockID($x-1, $y+1, $z-1) == 2) return true;
if($level->level->getBlockID($x + 1, $y + 1, $z + 1) == 2) return true;
if($level->level->getBlockID($x + 1, $y + 1, $z) == 2) return true;
if($level->level->getBlockID($x + 1, $y + 1, $z - 1) == 2) return true;
if($level->level->getBlockID($x, $y + 1, $z + 1) == 2) return true;
if($level->level->getBlockID($x, $y + 1, $z - 1) == 2) return true;
if($level->level->getBlockID($x - 1, $y + 1, $z + 1) == 2) return true;
if($level->level->getBlockID($x - 1, $y + 1, $z) == 2) return true;
if($level->level->getBlockID($x - 1, $y + 1, $z - 1) == 2) return true;
return false;
}