1
0
mirror of https://github.com/tacigar/maidroid.git synced 2025-06-28 05:50:20 +02:00

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

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/basic.lua")
dofile(maidroid_core.modpath .. "/cores/farming.lua") dofile(maidroid_core.modpath .. "/cores/farming.lua")
dofile(maidroid_core.modpath .. "/cores/torcher.lua") dofile(maidroid_core.modpath .. "/cores/torcher.lua")
if pdisc then if minetest.global_exists("pdisc") then
dofile(maidroid_core.modpath .. "/cores/ocr.lua") dofile(maidroid_core.modpath .. "/cores/ocr.lua")
end end