Fix pig→zombiepig lightning transform
This commit is contained in:
parent
f052f147b5
commit
de6096f47a
|
@ -184,7 +184,7 @@ lightning.strike = function(pos)
|
||||||
if lua.name == "mobs_mc:pig" then
|
if lua.name == "mobs_mc:pig" then
|
||||||
local rot = obj:get_yaw()
|
local rot = obj:get_yaw()
|
||||||
obj:remove()
|
obj:remove()
|
||||||
obj = minetest.add_entity(pos2, "mobs_mc:zombiepig")
|
obj = minetest.add_entity(pos2, "mobs_mc:pigman")
|
||||||
obj:set_yaw(rot)
|
obj:set_yaw(rot)
|
||||||
-- villager → witch
|
-- villager → witch
|
||||||
elseif lua.name == "mobs_mc:villager" then
|
elseif lua.name == "mobs_mc:villager" then
|
||||||
|
|
Loading…
Reference in New Issue