Merge pull request #175 from Rui-Minetest/patch-2

Use global_exists to test for the existence
This commit is contained in:
tacigar 2018-06-14 23:14:14 +09:00 committed by GitHub
commit 3b414ef40a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,6 @@ dofile(maidroid_core.modpath .. "/cores/empty.lua")
dofile(maidroid_core.modpath .. "/cores/basic.lua")
dofile(maidroid_core.modpath .. "/cores/farming.lua")
dofile(maidroid_core.modpath .. "/cores/torcher.lua")
if pdisc then
if minetest.global_exists("pdisc") then
dofile(maidroid_core.modpath .. "/cores/ocr.lua")
end