diff options
author | AntumDeluge <antumdeluge@gmail.com> | 2017-06-07 17:38:25 -0700 |
---|---|---|
committer | AntumDeluge <antumdeluge@gmail.com> | 2017-06-07 17:38:25 -0700 |
commit | f6b00f882cd440ed78f068ba5e211b54a90bc805 (patch) | |
tree | d505ea69d82e6f70f009fe57dc04062801442e3a | |
parent | 92af0b53e57248b004115ebc50bbd2f2ec630d50 (diff) | |
download | advtrains-f6b00f882cd440ed78f068ba5e211b54a90bc805.tar.gz advtrains-f6b00f882cd440ed78f068ba5e211b54a90bc805.tar.bz2 advtrains-f6b00f882cd440ed78f068ba5e211b54a90bc805.zip |
Check if 'digtron' global exists before calling in condition:
Fixes 'Undeclared global variable "digtron"'.
-rw-r--r-- | advtrains/advtrains/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/advtrains/init.lua b/advtrains/advtrains/init.lua index 1bb356d..7ab5b8f 100644 --- a/advtrains/advtrains/init.lua +++ b/advtrains/advtrains/init.lua @@ -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 |