mirror of
https://github.com/tacigar/maidroid.git
synced 2025-01-08 07:10:17 +01:00
Use global_exists to test for the existence
This commit is contained in:
parent
d2899c8672
commit
a01a1a2cb5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user