Fix MCL crash during loading in jetpack.lua
This commit is contained in:
parent
3db5fa322e
commit
4674f3b396
@ -28,9 +28,11 @@ local function registerJetpack(config)
|
||||
non_combat_torso=1,
|
||||
_industrialtest_jetpack=1
|
||||
}
|
||||
if config.groups then
|
||||
for key,value in pairs(config.groups) do
|
||||
groups[key]=value
|
||||
end
|
||||
end
|
||||
local definition={
|
||||
description=config.displayName,
|
||||
inventory_image="industrialtest_"..config.name.."_inv.png",
|
||||
@ -45,9 +47,11 @@ local function registerJetpack(config)
|
||||
_mcl_armor_texture="industrialtest_"..config.name..".png",
|
||||
_industrialtest_tryFly=config.tryFly
|
||||
}
|
||||
if config.customKeys then
|
||||
for key,value in pairs(config.customKeys) do
|
||||
definition[key]=value
|
||||
end
|
||||
end
|
||||
minetest.register_tool("industrialtest:"..config.name,definition)
|
||||
elseif industrialtest.mtgAvailable then
|
||||
local groups={
|
||||
|
Loading…
Reference in New Issue
Block a user