summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim <t4im@users.noreply.github.com>2015-02-06 07:59:51 +0100
committerTim <t4im@users.noreply.github.com>2015-02-06 07:59:51 +0100
commit72d541a6079c3b84db4e0b70e9d2264e59878565 (patch)
tree76700136f760fa4400d25a08f3a4db21840b75e0
parenta13e7b7ed1ab8948f3edc014e894c78ff4c8c653 (diff)
add trunks: mod support to the chainsaw
-rw-r--r--technic/tools/chainsaw.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/technic/tools/chainsaw.lua b/technic/tools/chainsaw.lua
index 50aee2e..03e3833 100644
--- a/technic/tools/chainsaw.lua
+++ b/technic/tools/chainsaw.lua
@@ -148,6 +148,14 @@ if minetest.get_modpath("vines") then
end
end
+if minetest.get_modpath("trunks") then
+ if chainsaw_leaves then
+ timber_nodenames["trunks:moss"] = true
+ timber_nodenames["trunks:moss_fungus"] = true
+ timber_nodenames["trunks:treeroot"] = true
+ end
+end
+
local S = technic.getter
technic.register_power_tool("technic:chainsaw", chainsaw_max_charge)