From 0c35a77c393eed64aab4604023cfac479768164c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 5 Jan 2017 15:59:37 +0100 Subject: [PATCH] Replace deprecated invsize[] --- mods/inventory/api.lua | 4 ++-- mods/inventory/init.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/inventory/api.lua b/mods/inventory/api.lua index 345f14efc..59efd7391 100644 --- a/mods/inventory/api.lua +++ b/mods/inventory/api.lua @@ -5,7 +5,7 @@ SURVIVAL_FORMSPEC = ""; function inventory.creative_inv(player) local name = player:get_player_name() CREATIVE_FORMSPEC = - "invsize[11,9.75;]".. + "size[11,9.75]".. default.inventory_header.. --"background[-0.25,1;10.5,8;inventory_creative_inventory_bg.png]".. "button[9.5,0;1.5,1.5;creative_search;Search]".. @@ -28,7 +28,7 @@ end function inventory.survival_inv(player) local name = player:get_player_name() SURVIVAL_FORMSPEC = - "invsize[9,9.5;]".. + "size[9,9.5]".. default.inventory_header.. --"background[-0.4,-0.45;9.8,9.825;inventory_survival_inventory_bg.png]".. "list[detached:"..name.."_armor;armor_head;0,0;1,1;]".. diff --git a/mods/inventory/init.lua b/mods/inventory/init.lua index bdd7a7cba..c778c1483 100644 --- a/mods/inventory/init.lua +++ b/mods/inventory/init.lua @@ -166,7 +166,7 @@ playerdata = load_player_data() if creative_type == "search" and playerdata[player:get_player_name()]['gamemode'] == "Creative" then local pagenum = math.floor(pagenum) local pagemax = math.floor((inventory.inventory_size-1) / (9*3) + 1) - CREATIVE_SEARCH_ITEMS = "invsize[10,7;]".. + CREATIVE_SEARCH_ITEMS = "size[10,7]".. "background[-0.22,-0.25;10.8,7.7;creative_inventory_bg.png]".. "button[8,0;1.5,1;creative_search;Search]".. "list[current_player;main;0.21,6.05;9,1;]"..