diff options
author | Rogier <rogier777@gmail.com> | 2015-02-07 20:42:23 +0100 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-03-11 18:10:16 -0400 |
commit | ab6f2b2556f42e965494e6db82eeb969a7ffe924 (patch) | |
tree | c9ef91f04ba36e1fc8559c82a7591836f3339aab /wrench/support.lua | |
parent | b8c902868115a0a607da35e208a422e430d46317 (diff) |
Make wrench usable independently of technic
Diffstat (limited to 'wrench/support.lua')
-rw-r--r-- | wrench/support.lua | 4 |
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 |