diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-11-14 18:05:37 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-11-14 18:05:37 -0500 |
commit | e1baf2018bf1faff14eaa83e65ba8fa029296e5d (patch) | |
tree | db6d3baad380d32dddf4db41c7d9b7587f53b8ce /leafdecay.lua | |
parent | 88eb73af9057ddff9ba3bace76627046848455cf (diff) |
Made it possible via moretrees config to force all moretrees, default, and
default jungle tree leaves to be plantlike drawtype.
The default setting is now plantlike. Change moretres_settings.txt in
your world folder if you don't like it.
Rearranged a bit of code to accommodate this.
Diffstat (limited to 'leafdecay.lua')
-rw-r--r-- | leafdecay.lua | 17 |
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, |