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,
|
non_combat_torso=1,
|
||||||
_industrialtest_jetpack=1
|
_industrialtest_jetpack=1
|
||||||
}
|
}
|
||||||
|
if config.groups then
|
||||||
for key,value in pairs(config.groups) do
|
for key,value in pairs(config.groups) do
|
||||||
groups[key]=value
|
groups[key]=value
|
||||||
end
|
end
|
||||||
|
end
|
||||||
local definition={
|
local definition={
|
||||||
description=config.displayName,
|
description=config.displayName,
|
||||||
inventory_image="industrialtest_"..config.name.."_inv.png",
|
inventory_image="industrialtest_"..config.name.."_inv.png",
|
||||||
@ -45,9 +47,11 @@ local function registerJetpack(config)
|
|||||||
_mcl_armor_texture="industrialtest_"..config.name..".png",
|
_mcl_armor_texture="industrialtest_"..config.name..".png",
|
||||||
_industrialtest_tryFly=config.tryFly
|
_industrialtest_tryFly=config.tryFly
|
||||||
}
|
}
|
||||||
|
if config.customKeys then
|
||||||
for key,value in pairs(config.customKeys) do
|
for key,value in pairs(config.customKeys) do
|
||||||
definition[key]=value
|
definition[key]=value
|
||||||
end
|
end
|
||||||
|
end
|
||||||
minetest.register_tool("industrialtest:"..config.name,definition)
|
minetest.register_tool("industrialtest:"..config.name,definition)
|
||||||
elseif industrialtest.mtgAvailable then
|
elseif industrialtest.mtgAvailable then
|
||||||
local groups={
|
local groups={
|
||||||
|
Loading…
Reference in New Issue
Block a user