|
1 | 1 |
|
2 | 2 | local scriptpath = core.get_builtin_path()
|
3 |
| -local commonpath = scriptpath.."common"..DIR_DELIM |
4 |
| -local gamepath = scriptpath.."game"..DIR_DELIM |
| 3 | +local commonpath = scriptpath .. "common" .. DIR_DELIM |
| 4 | +local gamepath = scriptpath .. "game".. DIR_DELIM |
5 | 5 |
|
6 | 6 | -- Shared between builtin files, but
|
7 | 7 | -- not exposed to outer context
|
8 | 8 | local builtin_shared = {}
|
9 | 9 |
|
10 |
| -dofile(commonpath.."vector.lua") |
| 10 | +dofile(commonpath .. "vector.lua") |
11 | 11 |
|
12 |
| -dofile(gamepath.."constants.lua") |
13 |
| -assert(loadfile(gamepath.."item.lua"))(builtin_shared) |
14 |
| -dofile(gamepath.."register.lua") |
| 12 | +dofile(gamepath .. "constants.lua") |
| 13 | +assert(loadfile(gamepath .. "item.lua"))(builtin_shared) |
| 14 | +dofile(gamepath .. "register.lua") |
15 | 15 |
|
16 | 16 | if core.settings:get_bool("profiler.load") then
|
17 |
| - profiler = dofile(scriptpath.."profiler"..DIR_DELIM.."init.lua") |
| 17 | + profiler = dofile(scriptpath .. "profiler" .. DIR_DELIM .. "init.lua") |
18 | 18 | end
|
19 | 19 |
|
20 | 20 | dofile(commonpath .. "after.lua")
|
21 |
| -dofile(gamepath.."item_entity.lua") |
22 |
| -dofile(gamepath.."deprecated.lua") |
23 |
| -dofile(gamepath.."misc.lua") |
24 |
| -dofile(gamepath.."privileges.lua") |
25 |
| -dofile(gamepath.."auth.lua") |
| 21 | +dofile(gamepath .. "item_entity.lua") |
| 22 | +dofile(gamepath .. "deprecated.lua") |
| 23 | +dofile(gamepath .. "misc.lua") |
| 24 | +dofile(gamepath .. "privileges.lua") |
| 25 | +dofile(gamepath .. "auth.lua") |
26 | 26 | dofile(commonpath .. "chatcommands.lua")
|
27 |
| -dofile(gamepath.."chatcommands.lua") |
| 27 | +dofile(gamepath .. "chat.lua") |
28 | 28 | dofile(commonpath .. "information_formspecs.lua")
|
29 |
| -dofile(gamepath.."static_spawn.lua") |
30 |
| -dofile(gamepath.."detached_inventory.lua") |
31 |
| -assert(loadfile(gamepath.."falling.lua"))(builtin_shared) |
32 |
| -dofile(gamepath.."features.lua") |
33 |
| -dofile(gamepath.."voxelarea.lua") |
34 |
| -dofile(gamepath.."forceloading.lua") |
35 |
| -dofile(gamepath.."statbars.lua") |
| 29 | +dofile(gamepath .. "static_spawn.lua") |
| 30 | +dofile(gamepath .. "detached_inventory.lua") |
| 31 | +assert(loadfile(gamepath .. "falling.lua"))(builtin_shared) |
| 32 | +dofile(gamepath .. "features.lua") |
| 33 | +dofile(gamepath .. "voxelarea.lua") |
| 34 | +dofile(gamepath .. "forceloading.lua") |
| 35 | +dofile(gamepath .. "statbars.lua") |
36 | 36 |
|
37 | 37 | profiler = nil
|
1 commit comments
niwla23 commentedon Aug 9, 2019
cool!