summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-11-14 18:05:37 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-11-14 18:05:37 -0500
commite1baf2018bf1faff14eaa83e65ba8fa029296e5d (patch)
treedb6d3baad380d32dddf4db41c7d9b7587f53b8ce /init.lua
parent88eb73af9057ddff9ba3bace76627046848455cf (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 'init.lua')
-rw-r--r--init.lua13
1 files changed, 12 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index dc7d733..d9a5f6b 100644
--- a/init.lua
+++ b/init.lua
@@ -39,7 +39,7 @@ if io.open(worldpath.."/moretrees_settings.txt","r") == nil then
end
io.write(block)
end
-
+ io.close()
else
dofile(worldpath.."/moretrees_settings.txt")
end
@@ -63,6 +63,17 @@ else
moretrees.expect_infinite_stacks = true
end
+-- node clone, for redefining stuff
+
+function moretrees:clone_node(name)
+ node2={}
+ node=minetest.registered_nodes[name]
+ for k,v in pairs(node) do
+ node2[k]=v
+ end
+ return node2
+end
+
-- tables, load other files
moretrees.cutting_tools = {