forked from R3R3R3/Citadella
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinit.lua
More file actions
31 lines (22 loc) · 704 Bytes
/
Copy pathinit.lua
File metadata and controls
31 lines (22 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--[[
init.lua
Entrypoint to this plugin.
--]]
ct = {}
ctdb = {}
minetest.debug("Citadella initialised")
local modpath = minetest.get_modpath(minetest.get_current_modname())
local ie = minetest.request_insecure_environment() or
error("Citadella needs to be a trusted mod. "
.."Add it to `secure.trusted_mods` in minetest.conf")
loadfile(modpath .. "/db.lua")(ie)
dofile(modpath .. "/cache.lua")
dofile(modpath .. "/reinforcements.lua")
dofile(modpath .. "/decay.lua")
dofile(modpath .. "/citadella.lua")
dofile(modpath .. "/hud.lua")
dofile(modpath .. "/container.lua")
dofile(modpath .. "/chest.lua")
dofile(modpath .. "/furnace.lua")
dofile(modpath .. "/crafting.lua")
return ct