mobs should spawn in block centers, so they will hopefully not stuck in walls

This commit is contained in:
GameHerobrine 2023-01-16 14:47:27 +03:00
parent e827427d1a
commit 33fe60364d

View file

@ -58,9 +58,9 @@ class MobSpawner{
private function genPosData($x, $y, $z){
return [
"x" => $x,
"x" => $x + 0.5,
"y" => $y,
"z" => $z
"z" => $z + 0.5
];
}