mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-30 21:03:00 +00:00
Fix mob spawn height for real
This commit is contained in:
parent
9324c43d8d
commit
d17c53cb0c
1 changed files with 3 additions and 2 deletions
|
@ -4007,7 +4007,7 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light,
|
||||||
if width_z % 2 == 0 then
|
if width_z % 2 == 0 then
|
||||||
pos.z = pos.z + 0.5
|
pos.z = pos.z + 0.5
|
||||||
end
|
end
|
||||||
pos.y = pos.y - 1.499
|
pos.y = pos.y - 0.5
|
||||||
|
|
||||||
local mob = minetest.add_entity(pos, name)
|
local mob = minetest.add_entity(pos, name)
|
||||||
minetest.log("action", "Mob spawned: "..name.." at "..minetest.pos_to_string(pos))
|
minetest.log("action", "Mob spawned: "..name.." at "..minetest.pos_to_string(pos))
|
||||||
|
@ -4291,9 +4291,10 @@ function mobs:register_egg(mob, desc, background, addegg, no_creative)
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
||||||
pos.y = pos.y + 1
|
pos.y = pos.y - 0.5
|
||||||
|
|
||||||
local mob = minetest.add_entity(pos, mob)
|
local mob = minetest.add_entity(pos, mob)
|
||||||
|
minetest.log("action", "Mob spawned: "..name.." at "..minetest.pos_to_string(pos))
|
||||||
local ent = mob:get_luaentity()
|
local ent = mob:get_luaentity()
|
||||||
|
|
||||||
-- don't set owner if monster or sneak pressed
|
-- don't set owner if monster or sneak pressed
|
||||||
|
|
Loading…
Reference in a new issue