Check if 'digtron' global exists before calling in condition:
Fixes 'Undeclared global variable "digtron"'.
This commit is contained in:
parent
92af0b53e5
commit
f6b00f882c
|
@ -144,7 +144,7 @@ dofile(advtrains.modpath.."/crafting.lua")
|
|||
dofile(advtrains.modpath.."/craft_items.lua")
|
||||
dofile(advtrains.modpath.."/loading.lua")
|
||||
|
||||
if digtron then
|
||||
if minetest.global_exists("digtron") then
|
||||
dofile(advtrains.modpath.."/digtron.lua")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue