f893f613c3
- Make node match operate on only one of node or stack, depending on whether node defers to stack via is_stack_only. This should hopefully prevent future pummel recipe issues. - Add new core stack API. Needs to be deployed in a lot of places. - Start work on system for allowing flammable containers; they eject their potentially non-flammable contents.
46 lines
1.2 KiB
Lua
46 lines
1.2 KiB
Lua
-- LUALOCALS < ---------------------------------------------------------
|
|
-- SKIP: nodecore
|
|
local dofile, include, minetest, rawget, rawset, table
|
|
= dofile, include, minetest, rawget, rawset, table
|
|
local table_concat, table_insert
|
|
= table.concat, table.insert
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
local nodecore = rawget(_G, "nodecore") or {}
|
|
rawset(_G, "nodecore", nodecore)
|
|
|
|
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)
|
|
|
|
nodecore.version = include("version")
|
|
|
|
include("issue7020")
|
|
|
|
include("util_misc")
|
|
include("util_scan_flood")
|
|
include("util_logtrace")
|
|
include("util_node_is")
|
|
include("util_toolcaps")
|
|
include("util_stack")
|
|
include("match")
|
|
|
|
include("fx_digparticles")
|
|
|
|
include("register_limited_abm")
|
|
|
|
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")
|