mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 06:11:47 +02: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:
@ -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
|
||||
|
Reference in New Issue
Block a user