1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-01-26 17:50:28 +01:00
rewrite flowers:mushroom_* hunger, breaked when moved mushroom: to flowers:
This commit is contained in:
crabman77 2016-07-14 15:15:34 +02:00
parent 1385ad34bb
commit 178be5eb46
2 changed files with 7 additions and 1 deletions

View File

@ -213,7 +213,8 @@ minetest.register_abm({
end end
if minetest.get_item_group(node_under.name, "soil") ~= 0 and if minetest.get_item_group(node_under.name, "soil") ~= 0 and
minetest.get_node_light(pos, nil) <= 9 and minetest.get_node_light(pos, nil) <= 9 and
minetest.get_node_light(random, nil) <= 9 then minetest.get_node_light(random, nil) <= 9 and
not minetest.is_protected(random, "") then
minetest.set_node(random, {name = node.name}) minetest.set_node(random, {name = node.name})
end end
end end

View File

@ -174,6 +174,11 @@ if minetest.get_modpath("bushes_classic") then
end end
end end
if minetest.get_modpath("flowers") ~= nil then
overwrite("flowers:mushroom_brown", 1)
overwrite("flowers:mushroom_red", 1, "", 3)
end
if minetest.get_modpath("mushroom") ~= nil then if minetest.get_modpath("mushroom") ~= nil then
overwrite("mushroom:brown", 1) overwrite("mushroom:brown", 1)
overwrite("mushroom:red", 1, "", 3) overwrite("mushroom:red", 1, "", 3)