From 3d5cceab76768e360e3ea958c71bcf79e9cc2eec Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Sat, 24 Apr 2021 22:21:58 -0400 Subject: [PATCH] Fix ghast strange behavior in the nether --- mods/ENTITIES/mcl_mobs/api/api.lua | 2 -- mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api/api.lua b/mods/ENTITIES/mcl_mobs/api/api.lua index d1e5a081c..fb76f0d18 100644 --- a/mods/ENTITIES/mcl_mobs/api/api.lua +++ b/mods/ENTITIES/mcl_mobs/api/api.lua @@ -677,8 +677,6 @@ function mobs:register_egg(mob, desc, background, addegg, no_creative) return itemstack end - 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() diff --git a/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua b/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua index 0fe18c3f2..93ec12f72 100644 --- a/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua +++ b/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua @@ -584,6 +584,7 @@ local random_pitch_multiplier = {-1,1} -- states are executed here local fly_state_execution = function(self,dtime) local pos = self.object:get_pos() + pos.y = pos.y + 0.1 local current_node = minetest_get_node(pos).name local inside_fly_node = minetest_get_item_group(current_node, "solid") == 0