From 1c35828fa2b5852328319c46e4bb0fd9727109c3 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 5 Feb 2019 19:24:02 +0100 Subject: [PATCH] Fix stupid mob spawn height --- 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 8d493cd50..9fddda4d0 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -3289,8 +3289,9 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, end end - -- spawn mob with half of its height above ground - pos.y = pos.y + ((ent.collisionbox[2] - ent.collisionbox[5]) / 2) + -- spawn mob 1/2 node above ground + pos.y = pos.y + 0.5 + -- tweak X/Z spawn pos if width_x % 2 == 0 then pos.x = pos.x + 0.5 end