Remove duplicate ABM

This commit is contained in:
ShadowNinja
2013-12-17 14:24:06 -05:00
parent bab8517b2a
commit 64db3d14d8
2 changed files with 5 additions and 15 deletions

View File

@ -65,8 +65,11 @@ minetest.register_abm({
interval = 60,
chance = 15,
action = function(pos, node)
node.name = "moretrees:rubber_tree_trunk"
minetest.set_node(pos, node)
local meta = minetest.get_meta(pos)
if meta:get_int("placed") ~= 0 then
return
end
minetest.set_node(pos, {name="moretrees:rubber_tree_trunk"})
end
})