Skip to content

Commit 7a980a6

Browse files
committed
Fix missing sfinv page background images, closes #90
1 parent fc3fcea commit 7a980a6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

3d_armor/armor.lua

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ armor = {
7979
}
8080

8181
local armor_formpage = "image[2.5,0;2,4;armor_preview]"..
82+
default.gui_bg..
83+
default.gui_bg_img..
84+
default.gui_slots..
85+
default.get_hotbar_bg(0,4.25)..
8286
"label[5,1;Level: armor_level]"..
8387
"label[5,1.5;Heal: armor_heal]"..
8488
"label[5,2;Fire: armor_fire]"..
@@ -87,12 +91,7 @@ local armor_formpage = "image[2.5,0;2,4;armor_preview]"..
8791
"list[current_player;main;0,5.5;8,3;8]"
8892
if minetest.get_modpath("inventory_plus") then
8993
inv_mod = "inventory_plus"
90-
armor.formspec = "size[8,8.5]button[6,0;2,0.5;main;Back]"..
91-
default.gui_bg..
92-
default.gui_bg_img..
93-
default.gui_slots..
94-
default.get_hotbar_bg(0,4.25)..
95-
armor_formpage
94+
armor.formspec = "size[8,8.5]button[6,0;2,0.5;main;Back]"..armor_formpage
9695
if minetest.get_modpath("crafting") then
9796
inventory_plus.get_formspec = function(player, page)
9897
end

0 commit comments

Comments
 (0)