Make wrench usable independently of technic

This commit is contained in:
Rogier 2015-02-07 20:42:23 +01:00 committed by Vanessa Ezekowitz
parent b8c9028681
commit ab6f2b2556
3 changed files with 21 additions and 17 deletions

View File

@ -1,6 +1,6 @@
default
technic
technic_chests
technic_worldgen
technic?
technic_chests?
technic_worldgen?
intllib?

View File

@ -66,6 +66,8 @@ function wrench:original_name(name)
end
function wrench:register_node(name, def)
if minetest.registered_nodes[name] then
self.registered_nodes[name] = def
end
end

View File

@ -323,6 +323,7 @@ for i = 1, 15 do
})
end
if minetest.get_modpath("technic") then
for tier, _ in pairs(technic.machines) do
local ltier = tier:lower()
for i = 0, 8 do
@ -338,4 +339,5 @@ for tier, _ in pairs(technic.machines) do
})
end
end
end