2018-11-02 21:20:51 -04:00
|
|
|
-- LUALOCALS < ---------------------------------------------------------
|
2019-01-12 20:51:34 -05:00
|
|
|
-- SKIP: nodecore
|
2019-02-09 22:44:56 -05:00
|
|
|
local dofile, include, minetest, rawget, rawset, table
|
|
|
|
= dofile, include, minetest, rawget, rawset, table
|
2019-02-04 20:15:33 -05:00
|
|
|
local table_concat, table_insert
|
|
|
|
= table.concat, table.insert
|
2018-11-02 21:20:51 -04:00
|
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
|
2019-01-12 20:46:56 -05:00
|
|
|
local nodecore = rawget(_G, "nodecore") or {}
|
2018-11-02 07:52:23 -04:00
|
|
|
rawset(_G, "nodecore", nodecore)
|
2018-11-02 18:47:44 -04:00
|
|
|
|
2019-02-04 20:15:33 -05:00
|
|
|
local include = rawget(_G, "include") or function(...)
|
|
|
|
local parts = {...}
|
|
|
|
table_insert(parts, 1, minetest.get_modpath(minetest.get_current_modname()))
|
|
|
|
if parts[#parts]:sub(-4) ~= ".lua" then
|
|
|
|
parts[#parts] = parts[#parts] .. ".lua"
|
|
|
|
end
|
|
|
|
minetest.log(table_concat(parts, "/"))
|
|
|
|
return dofile(table_concat(parts, "/"))
|
|
|
|
end
|
|
|
|
rawset(_G, "include", include)
|
2018-11-02 21:20:51 -04:00
|
|
|
|
2019-02-04 20:15:33 -05:00
|
|
|
nodecore.version = include("version")
|
2018-11-03 08:46:14 -04:00
|
|
|
|
2019-02-04 20:15:33 -05:00
|
|
|
include("issue7020")
|
2019-02-03 12:10:27 -05:00
|
|
|
|
2019-02-04 20:15:33 -05:00
|
|
|
include("util_misc")
|
|
|
|
include("util_scan_flood")
|
|
|
|
include("util_logtrace")
|
|
|
|
include("util_node_is")
|
|
|
|
include("util_toolcaps")
|
2019-02-23 09:44:22 -05:00
|
|
|
include("util_stack")
|
2019-02-04 20:16:54 -05:00
|
|
|
include("match")
|
2019-02-09 22:44:56 -05:00
|
|
|
|
|
|
|
include("fx_digparticles")
|
2019-01-06 12:02:37 -05:00
|
|
|
|
2019-02-04 20:15:33 -05:00
|
|
|
include("register_limited_abm")
|
2018-11-02 19:08:59 -04:00
|
|
|
|
2019-02-04 20:15:33 -05:00
|
|
|
include("item_on_register")
|
|
|
|
include("item_drop_in_place")
|
|
|
|
include("item_falling_repose")
|
|
|
|
include("item_alternate_loose")
|
|
|
|
include("item_group_visinv")
|
|
|
|
include("item_oldnames")
|
|
|
|
include("item_tool_wears_to")
|