This commit is contained in:
Freeman 2023-10-08 13:16:54 +02:00
parent ff0fa3f0d0
commit 0719176174

View File

@ -146,6 +146,13 @@ local tube_insert_object = function(pos, _, original_stack, direction)
return stack
end
local mcl_bg = ""
if minetest.get_modpath("mcl_formspec") then
mcl_bg = mcl_formspec.get_itemslot_bg(0,1,8,4)..
mcl_formspec.get_itemslot_bg(0,6,8,4)
end
minetest.register_alias("digilines_inventory:chest", "digilines:chest")
minetest.register_node("digilines:chest", {
description = S("Digiline Chest"),
@ -175,6 +182,7 @@ minetest.register_node("digilines:chest", {
"field[2,5.5;5,1;channel;" .. S("Channel") .. ";${channel}]"..
((default and default.get_hotbar_bg) and default.get_hotbar_bg(0,6) or "")..
"list[current_player;main;0,6;8,4;]"..
mcl_bg..
"listring[]")
local inv = meta:get_inventory()
inv:set_size("main", 8*4)