forked from mtcontrib/maidroid
Merge pull request #175 from Rui-Minetest/patch-2
Use global_exists to test for the existence
This commit is contained in:
commit
3b414ef40a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user