mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-05 01:50:25 +01:00
disable mushroom spawn in protected areas, issue https://github.com/MinetestForFun/server-minetestforfun/issues/483
rewrite flowers:mushroom_* hunger, breaked when moved mushroom: to flowers:
This commit is contained in:
parent
1385ad34bb
commit
178be5eb46
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user