From ac62ec19e3f425202f515564b243fc4f060cf4ac Mon Sep 17 00:00:00 2001 From: isaiah658 <29903689+isaiah658@users.noreply.github.com> Date: Wed, 16 Dec 2020 01:16:44 +0000 Subject: [PATCH] Change formspec prepend and background Formspec prepend is now true by default. Also removes the old background image. --- internal.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/internal.lua b/internal.lua index eeab695..33097d5 100644 --- a/internal.lua +++ b/internal.lua @@ -62,16 +62,16 @@ function unified_inventory.get_formspec(player, page) return "" -- Invalid page name end - local formspec = { - "size[14,10]", - pagedef.formspec_prepend and "" or "no_prepend[]", - "background[-0.19,-0.25;14.4,10.75;ui_form_bg.png]" -- Background - } - local n = 4 + local formspec = {"size[14,10]"} + if pagedef.formspec_prepend or pagedef.formspec_prepend == nil then + formspec[2] = "" + else + formspec[2] = "no_prepend[]" + end + local n = 3 if draw_lite_mode then formspec[1] = "size[11,7.7]" - formspec[3] = "background[-0.19,-0.2;11.4,8.4;ui_form_bg.png]" end if unified_inventory.is_creative(player_name)