From cc829021fce4c8daa62978bf5e429e695f771b13 Mon Sep 17 00:00:00 2001 From: jp Date: Thu, 26 Nov 2015 16:26:43 +0100 Subject: [PATCH] Better pattern --- mailbox.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailbox.lua b/mailbox.lua index 8c62c13..dd356ff 100644 --- a/mailbox.lua +++ b/mailbox.lua @@ -98,7 +98,7 @@ function mailbox.formspec(pos, owner, num) for i = 1, 7 do if meta:get_string("giver"..i) ~= "" then giver = giver.."#FFFF00,"..meta:get_string("giver"..i):sub(1, 12).. - ","..i..",#FFFFFF,x "..meta:get_string("stack"..i):sub(-3):match("%d+").."," + ","..i..",#FFFFFF,x "..meta:get_string("stack"..i):match("%s(%d+)").."," end end