aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--advtrains/advtrains/init.lua2
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