mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-08-25 19:37:24 +02:00
Merge pull request 'Fix ghast strange behavior in the nether' (#1640) from jordan4ibanez/MineClone2:mineclone5 into mineclone5
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/1640
This commit is contained in:
commit
5ba0d34cd5
@ -677,8 +677,6 @@ function mobs:register_egg(mob, desc, background, addegg, no_creative)
|
|||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
||||||
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))
|
minetest.log("action", "Mob spawned: "..name.." at "..minetest.pos_to_string(pos))
|
||||||
local ent = mob:get_luaentity()
|
local ent = mob:get_luaentity()
|
||||||
|
@ -584,6 +584,7 @@ local random_pitch_multiplier = {-1,1}
|
|||||||
-- states are executed here
|
-- states are executed here
|
||||||
local fly_state_execution = function(self,dtime)
|
local fly_state_execution = function(self,dtime)
|
||||||
local pos = self.object:get_pos()
|
local pos = self.object:get_pos()
|
||||||
|
pos.y = pos.y + 0.1
|
||||||
local current_node = minetest_get_node(pos).name
|
local current_node = minetest_get_node(pos).name
|
||||||
local inside_fly_node = minetest_get_item_group(current_node, "solid") == 0
|
local inside_fly_node = minetest_get_item_group(current_node, "solid") == 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user