1
0
Fork 0

Fix ghast strange behavior in the nether

This commit is contained in:
jordan4ibanez 2021-04-24 22:21:58 -04:00
parent a73e5b57c0
commit 3d5cceab76
2 changed files with 1 additions and 2 deletions

View File

@ -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()

View File

@ -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