forked from Mineclonia/Mineclonia
Don't randomly destroy double plants
This commit is contained in:
parent
d114818b3e
commit
46bf871ba2
|
@ -275,6 +275,10 @@ minetest.register_abm({
|
||||||
interval = 12,
|
interval = 12,
|
||||||
chance = 2,
|
chance = 2,
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
|
-- Ignore the upper part of double plants
|
||||||
|
if minetest.get_item_group(node.name, "double_plant") == 2 then
|
||||||
|
return
|
||||||
|
end
|
||||||
local below = minetest.get_node_or_nil({x=pos.x, y=pos.y-1, z=pos.z})
|
local below = minetest.get_node_or_nil({x=pos.x, y=pos.y-1, z=pos.z})
|
||||||
if not below then
|
if not below then
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue