From d17c53cb0cd9c7948950f9350138f99deb458d6b Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 8 Dec 2020 22:42:01 +0100 Subject: [PATCH] Fix mob spawn height for real --- mods/ENTITIES/mcl_mobs/api.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 11b97d0f..bfc4a7f9 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -4007,7 +4007,7 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, if width_z % 2 == 0 then pos.z = pos.z + 0.5 end - pos.y = pos.y - 1.499 + pos.y = pos.y - 0.5 local mob = minetest.add_entity(pos, name) 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 end - pos.y = pos.y + 1 + pos.y = pos.y - 0.5 local mob = minetest.add_entity(pos, mob) + minetest.log("action", "Mob spawned: "..name.." at "..minetest.pos_to_string(pos)) local ent = mob:get_luaentity() -- don't set owner if monster or sneak pressed