From e1baf2018bf1faff14eaa83e65ba8fa029296e5d Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Thu, 14 Nov 2013 18:05:37 -0500 Subject: 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. --- init.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'init.lua') 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 = { -- cgit v1.2.3