mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-24 08:59:32 +01:00
Fix stupid mob spawn height
This commit is contained in:
parent
cfd5615548
commit
1c35828fa2
1 changed files with 3 additions and 2 deletions
|
@ -3289,8 +3289,9 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light,
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- spawn mob with half of its height above ground
|
-- spawn mob 1/2 node above ground
|
||||||
pos.y = pos.y + ((ent.collisionbox[2] - ent.collisionbox[5]) / 2)
|
pos.y = pos.y + 0.5
|
||||||
|
-- tweak X/Z spawn pos
|
||||||
if width_x % 2 == 0 then
|
if width_x % 2 == 0 then
|
||||||
pos.x = pos.x + 0.5
|
pos.x = pos.x + 0.5
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue