Merge pull request #75 from AntumDeluge/digtron

Check if 'digtron' global exists before calling in condition
This commit is contained in:
orwell96 2017-06-08 10:52:03 +02:00 committed by GitHub
commit b0580176b4
1 changed files with 1 additions and 1 deletions

View File

@ -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