summaryrefslogtreecommitdiff
path: root/leafdecay.lua
diff options
context:
space:
mode:
Diffstat (limited to 'leafdecay.lua')
-rw-r--r--leafdecay.lua17
1 files changed, 0 insertions, 17 deletions
diff --git a/leafdecay.lua b/leafdecay.lua
index f77f8dd..3bce131 100644
--- a/leafdecay.lua
+++ b/leafdecay.lua
@@ -1,14 +1,5 @@
-- leaf decay
-function clone_node(name)
- node2={}
- node=minetest.registered_nodes[name]
- for k,v in pairs(node) do
- node2[k]=v
- end
- return node2
-end
-
-- this function is based on the default leafdecay code
local process_drops = function(pos, name)
local drops = minetest.get_node_drops(name)
@@ -85,10 +76,6 @@ end
if moretrees.enable_default_leafdecay then
- new_default_leaves = clone_node("default:leaves")
- new_default_leaves.groups = {snappy=3, flammable=2, leaves=1}
- minetest.register_node(":default:leaves", new_default_leaves)
-
minetest.register_abm({
nodenames = "default:leaves",
interval = moretrees.default_leafdecay_delay,
@@ -105,10 +92,6 @@ end
if moretrees.enable_default_jungle_leafdecay then
- new_default_jungle_leaves = clone_node("default:jungleleaves")
- new_default_jungle_leaves.groups = {snappy=3, flammable=2, leaves=1}
- minetest.register_node(":default:jungleleaves", new_default_jungle_leaves)
-
minetest.register_abm({
nodenames = "default:jungleleaves",
interval = moretrees.default_jungle_leafdecay_delay,