From 4735055b94a446e60555a95df51ea924340bcb91 Mon Sep 17 00:00:00 2001 From: est31 Date: Tue, 3 Feb 2015 11:14:26 +0100 Subject: [PATCH] Update chests formspec to not be deprecated --- technic_chests/register.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/technic_chests/register.lua b/technic_chests/register.lua index 62d7529..a6038ef 100644 --- a/technic_chests/register.lua +++ b/technic_chests/register.lua @@ -193,9 +193,9 @@ function technic.chests:definition(name, data) local locked_after_place = nil local front = {"technic_"..lname.."_chest_front.png"} - data.base_formspec = "invsize["..data.ovwidth..","..data.ovheight..";]".. + data.base_formspec = "size["..data.ovwidth..","..data.ovheight.."]".. "label[0,0;"..S("%s Chest"):format(name).."]".. - "list[current_name;main;"..data.hileft..",1;"..data.width..","..data.height..";]".. + "list[context;main;"..data.hileft..",1;"..data.width..","..data.height..";]".. "list[current_player;main;"..data.loleft..","..data.lotop..";8,4;]".. "background[-0.19,-0.25;"..(data.ovwidth+0.4)..","..(data.ovheight+0.75)..";technic_form_bg.png]".. "background["..data.hileft..",1;"..data.width..","..data.height..";technic_"..lname.."_chest_inventory.png]"..