From 70fe6824164cfdb3fa9fde04329a34f7b2e635a9 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 27 Nov 2016 19:38:56 +0000 Subject: [PATCH] Update sfinv support Makes it work with released version (rather than the old alpha) --- init.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index 32d2a04..06ad0e3 100644 --- a/init.lua +++ b/init.lua @@ -140,12 +140,8 @@ if minetest.global_exists("sfinv") then title = "Inbox", get = function(self, player, context) local name = player:get_player_name() - return ([[ - size[12,8] - bgcolor[#080808BB;true] - background[5,5;1,1;gui_formbg.png;true] - {{ nav }} - ]]) .. email.get_formspec(name) + return sfinv.make_formspec(player, context, + email.get_formspec(name), false, "size[12,8]") end }) end