summaryrefslogtreecommitdiff
path: root/wrench/support.lua
diff options
context:
space:
mode:
authorRogier <rogier777@gmail.com>2015-02-07 20:42:23 +0100
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2015-03-11 18:10:16 -0400
commitab6f2b2556f42e965494e6db82eeb969a7ffe924 (patch)
treec9ef91f04ba36e1fc8559c82a7591836f3339aab /wrench/support.lua
parentb8c902868115a0a607da35e208a422e430d46317 (diff)
Make wrench usable independently of technic
Diffstat (limited to 'wrench/support.lua')
-rw-r--r--wrench/support.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/wrench/support.lua b/wrench/support.lua
index 6d1c9ab..1d21811 100644
--- a/wrench/support.lua
+++ b/wrench/support.lua
@@ -66,6 +66,8 @@ function wrench:original_name(name)
end
function wrench:register_node(name, def)
- self.registered_nodes[name] = def
+ if minetest.registered_nodes[name] then
+ self.registered_nodes[name] = def
+ end
end