Show bag number when displaying bag contents

This commit is contained in:
Zefram 2014-04-29 17:19:57 +01:00
parent 5e52f3c49c
commit 76a2337c59
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ for i = 1, 4 do
local stack = player:get_inventory():get_stack("bag"..i, 1)
local image = stack:get_definition().inventory_image
local formspec = "image[7,0;1,1;"..image.."]"
formspec = formspec.."label[0,0;Bag "..i.."]"
formspec = formspec.."listcolors[#00000000;#00000000]"
formspec = formspec.."list[current_player;bag"..i.."contents;0,1;8,3;]"
local slots = stack:get_definition().groups.bagslots