mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
actually load the code, and make it not crash
This commit is contained in:
parent
4e2970e34d
commit
478e9bef17
14 changed files with 82 additions and 37 deletions
13
builtin/sscsm_client/init.lua
Normal file
13
builtin/sscsm_client/init.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
local scriptpath = core.get_builtin_path()
|
||||
local commonpath = scriptpath .. "common" .. DIR_DELIM
|
||||
local mypath = scriptpath .. "sscsm_client".. DIR_DELIM
|
||||
|
||||
-- Shared between builtin files, but
|
||||
-- not exposed to outer context
|
||||
local builtin_shared = {}
|
||||
|
||||
assert(loadfile(commonpath .. "register.lua"))(builtin_shared)
|
||||
assert(loadfile(mypath .. "register.lua"))(builtin_shared)
|
||||
|
||||
dofile(commonpath .. "after.lua")
|
Loading…
Add table
Add a link
Reference in a new issue