mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
Don't randomly destroy double plants
This commit is contained in:
parent
d114818b3e
commit
46bf871ba2
1 changed files with 4 additions and 0 deletions
|
@ -275,6 +275,10 @@ minetest.register_abm({
|
|||
interval = 12,
|
||||
chance = 2,
|
||||
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})
|
||||
if not below then
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue