mirror of
https://github.com/minetest-mods/global_exchange.git
synced 2024-11-01 07:50:28 +01:00
15 lines
437 B
Lua
15 lines
437 B
Lua
|
|
local modpath = minetest.get_modpath(minetest.get_current_modname()) .. "/"
|
|
|
|
local exchange = (dofile(modpath .. "exchange.lua")).open_exchange(
|
|
minetest.get_worldpath() .. "/global_exchange.db"
|
|
)
|
|
|
|
minetest.register_on_shutdown(function()
|
|
exchange:close()
|
|
end)
|
|
|
|
assert(loadfile(modpath .. "atm.lua"))(exchange)
|
|
assert(loadfile(modpath .. "exchange_machine.lua"))(exchange)
|
|
assert(loadfile(modpath .. "digital_mailbox.lua"))(exchange)
|