forked from VoxeLibre/VoxeLibre
master #9
|
@ -203,12 +203,8 @@ local dispenserdef = {
|
||||||
else
|
else
|
||||||
minetest.add_item(droppos, mobs_mc.items.mushroom_red .. " 5")
|
minetest.add_item(droppos, mobs_mc.items.mushroom_red .. " 5")
|
||||||
end
|
end
|
||||||
local oldyaw = obj:get_yaw()
|
obj = mcl_util.replace_mob(obj, "mobs_mc:cow")
|
||||||
obj:remove()
|
entity = obj:get_luaentity()
|
||||||
local cow = minetest.add_entity(pos, "mobs_mc:cow")
|
|
||||||
cow:set_yaw(oldyaw)
|
|
||||||
obj = cow
|
|
||||||
entity = cow:get_luaentity()
|
|
||||||
used = true
|
used = true
|
||||||
end
|
end
|
||||||
if used then
|
if used then
|
||||||
|
|
Loading…
Reference in New Issue