summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2014-04-29 17:19:57 +0100
committerZefram <zefram@fysh.org>2014-04-29 17:19:57 +0100
commit76a2337c59c36d35f7c10b884ec4a5e056b8f4a1 (patch)
treeb0b2bd6fd13f956f8bd302ed8fcafc7cf4635101
parent5e52f3c49c30ff619cbbf7b5f6ea5cde652a8bf9 (diff)
Show bag number when displaying bag contents
-rw-r--r--bags.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/bags.lua b/bags.lua
index 2a21d5d..34533a2 100644
--- a/bags.lua
+++ b/bags.lua
@@ -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