mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-26 10:50:33 +01:00
Remove duplicate ABM
This commit is contained in:
parent
bab8517b2a
commit
64db3d14d8
@ -65,8 +65,11 @@ minetest.register_abm({
|
|||||||
interval = 60,
|
interval = 60,
|
||||||
chance = 15,
|
chance = 15,
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
node.name = "moretrees:rubber_tree_trunk"
|
local meta = minetest.get_meta(pos)
|
||||||
minetest.set_node(pos, node)
|
if meta:get_int("placed") ~= 0 then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
minetest.set_node(pos, {name="moretrees:rubber_tree_trunk"})
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -44,19 +44,6 @@ minetest.register_node(":moretrees:rubber_tree_trunk_empty", {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_abm({
|
|
||||||
nodenames = {"moretrees:rubber_tree_trunk_empty"},
|
|
||||||
interval = 60,
|
|
||||||
chance = 15,
|
|
||||||
action = function(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
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node(":moretrees:rubber_tree_leaves", {
|
minetest.register_node(":moretrees:rubber_tree_leaves", {
|
||||||
drawtype = "allfaces_optional",
|
drawtype = "allfaces_optional",
|
||||||
tiles = {"technic_rubber_leaves.png"},
|
tiles = {"technic_rubber_leaves.png"},
|
||||||
|
Loading…
Reference in New Issue
Block a user