From 0df824f480d97a29d786cb0ffa3432a0289bb3e1 Mon Sep 17 00:00:00 2001 From: Freeman Date: Tue, 22 Aug 2023 18:30:14 +0200 Subject: [PATCH] MineClone list backgrounds compat --- autocrafter.lua | 2 +- filter-injector.lua | 2 +- sorting_tubes.lua | 2 +- trashcan.lua | 2 +- wielder.lua | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/autocrafter.lua b/autocrafter.lua index 00869e1..8d9936e 100644 --- a/autocrafter.lua +++ b/autocrafter.lua @@ -190,7 +190,7 @@ local function update_meta(meta, enabled) local state = enabled and "on" or "off" meta:set_int("enabled", enabled and 1 or 0) local list_backgrounds = "" - if minetest.get_modpath("i3") then + if minetest.get_modpath("i3") or minetest.get_modpath("mcl_formspec") then list_backgrounds = "style_type[box;colors=#666]" for i=0, 2 do for j=0, 2 do diff --git a/filter-injector.lua b/filter-injector.lua index ac98a62..414e249 100644 --- a/filter-injector.lua +++ b/filter-injector.lua @@ -38,7 +38,7 @@ local function set_filter_formspec(data, meta) end local size = "10.2,11" local list_backgrounds = "" - if minetest.get_modpath("i3") then + if minetest.get_modpath("i3") or minetest.get_modpath("mcl_formspec") then list_backgrounds = "style_type[box;colors=#666]" for i=0, 7 do for j=0, 1 do diff --git a/sorting_tubes.lua b/sorting_tubes.lua index d35308f..39a8686 100644 --- a/sorting_tubes.lua +++ b/sorting_tubes.lua @@ -24,7 +24,7 @@ if pipeworks.enable_mese_tube then ) end local list_backgrounds = "" - if minetest.get_modpath("i3") then + if minetest.get_modpath("i3") or minetest.get_modpath("mcl_formspec") then list_backgrounds = "style_type[box;colors=#666]" for i=0, 5 do for j=0, 5 do diff --git a/trashcan.lua b/trashcan.lua index 7c3d4e9..2795540 100644 --- a/trashcan.lua +++ b/trashcan.lua @@ -23,7 +23,7 @@ minetest.register_node("pipeworks:trashcan", { local meta = minetest.get_meta(pos) local size = "10.2,9" local list_background = "" - if minetest.get_modpath("i3") then + if minetest.get_modpath("i3") or minetest.get_modpath("mcl_formspec") then list_background = "style_type[box;colors=#666]box[4.5,2;1,1;]" end meta:set_string("formspec", diff --git a/wielder.lua b/wielder.lua index 360a7bd..c5b5ec9 100644 --- a/wielder.lua +++ b/wielder.lua @@ -8,7 +8,7 @@ end local function set_wielder_formspec(data, meta) local size = "10.2,"..(7+data.wield_inv_height) local list_background = "" - if minetest.get_modpath("i3") then + if minetest.get_modpath("i3") or minetest.get_modpath("mcl_formspec") then list_background = "style_type[box;colors=#666]" for i=0, data.wield_inv_height-1 do for j=0, data.wield_inv_width-1 do