1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-05 01:50:25 +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
if minetest.get_item_group(node_under.name, "soil") ~= 0 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})
end
end

View File

@ -174,6 +174,11 @@ if minetest.get_modpath("bushes_classic") then
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
overwrite("mushroom:brown", 1)
overwrite("mushroom:red", 1, "", 3)