summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
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 = {