From 3c357b4b499116f518734624db30f5f689390681 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 23 Jan 2015 02:36:43 +0100 Subject: [PATCH] fix formspecs and use the inventory sizes for cardboard box and medicine cabinet, that their formspecs allowed to use before --- homedecor/misc-bathroom.lua | 2 +- homedecor/misc-nodes.lua | 2 +- homedecor/registration_handler.lua | 10 +++++++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/homedecor/misc-bathroom.lua b/homedecor/misc-bathroom.lua index 5daf87d..33e88a7 100644 --- a/homedecor/misc-bathroom.lua +++ b/homedecor/misc-bathroom.lua @@ -89,7 +89,7 @@ homedecor.register("medicine_cabinet", { end, infotext=S("Medicine cabinet"), inventory = { - size=16, + size=6, }, }) diff --git a/homedecor/misc-nodes.lua b/homedecor/misc-nodes.lua index e3e4ea4..4a58b39 100644 --- a/homedecor/misc-nodes.lua +++ b/homedecor/misc-nodes.lua @@ -327,7 +327,7 @@ homedecor.register("cardboard_box", { sounds = default.node_sound_wood_defaults(), infotext=S("Cardboard box"), inventory = { - size=8, + size=4, }, }) diff --git a/homedecor/registration_handler.lua b/homedecor/registration_handler.lua index a66561c..a79d817 100644 --- a/homedecor/registration_handler.lua +++ b/homedecor/registration_handler.lua @@ -8,12 +8,20 @@ end local default_inventory_size = 32 local default_inventory_formspecs = { + ["4"]="size[8,6]".. + "list[context;main;2,0;4,1;]".. + "list[current_player;main;0,2;8,4;]", + + ["6"]="size[8,6]".. + "list[context;main;1,0;6,1;]".. + "list[current_player;main;0,2;8,4;]", + ["8"]="size[8,6]".. "list[context;main;0,0;8,1;]".. "list[current_player;main;0,2;8,4;]", ["12"]="size[8,7]".. - "list[context;main;0,0;8,2;]".. + "list[context;main;1,0;6,2;]".. "list[current_player;main;0,3;8,4;]", ["16"]="size[8,7]"..