1
0
дзеркало https://github.com/luanti-org/minetest_game.git синхронізовано 2025-12-31 09:45:19 +01:00

fix crash from default.chest.register_chest

Цей коміт міститься в:
tour
2024-04-06 22:34:20 +02:00
зафіксовано sfan5
джерело 16c663f87e
коміт a43a6bcdef

Переглянути файл

@@ -297,9 +297,10 @@ function default.chest.register_chest(prefixed_name, d)
end
-- close opened chests on load
local modname, chestname = prefixed_name:match("^(:?.-):(.*)$")
minetest.register_lbm({
label = "close opened chests on load",
name = "default:close_" .. prefixed_name:gsub(":", "_") .. "_open",
name = modname .. ":close_" .. chestname .. "_open",
nodenames = {prefixed_name .. "_open"},
run_at_every_load = true,
action = function(pos, node)