diff options
author | Zefram <zefram@fysh.org> | 2014-04-29 17:19:57 +0100 |
---|---|---|
committer | Zefram <zefram@fysh.org> | 2014-04-29 17:19:57 +0100 |
commit | 76a2337c59c36d35f7c10b884ec4a5e056b8f4a1 (patch) | |
tree | b0b2bd6fd13f956f8bd302ed8fcafc7cf4635101 /bags.lua | |
parent | 5e52f3c49c30ff619cbbf7b5f6ea5cde652a8bf9 (diff) |
Show bag number when displaying bag contents
Diffstat (limited to 'bags.lua')
-rw-r--r-- | bags.lua | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |