mirror of
https://github.com/appgurueu/modlib.git
synced 2024-08-19 04:44:11 +02:00
14 lines
365 B
Lua
14 lines
365 B
Lua
local _ENV = setmetatable({}, {__index = _G})
|
|
local function load(filename)
|
|
assert(loadfile(modlib.mod.get_resource(modlib.modname, "minetest", filename .. ".lua")))(_ENV)
|
|
end
|
|
-- minetest/gametime.lua is forceloaded in init.lua
|
|
load"misc"
|
|
load"collisionboxes"
|
|
load"liquid"
|
|
load"raycast"
|
|
load"wielditem_change"
|
|
load"colorspec"
|
|
load"schematic"
|
|
load"luon"
|
|
return _ENV |