From 07191761741a59c359a7411b43ba9c7b823f533f Mon Sep 17 00:00:00 2001 From: Freeman Date: Sun, 8 Oct 2023 13:16:54 +0200 Subject: [PATCH] formspec --- inventory.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/inventory.lua b/inventory.lua index 903415b..f20ef8c 100644 --- a/inventory.lua +++ b/inventory.lua @@ -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)