From: jp Date: Thu, 26 Nov 2015 12:04:48 +0000 (+0100) Subject: Mailbox : don't fetch texture modifiers inside tablecolumns X-Git-Tag: 1.0~294 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;ds=inline;h=d742c54548ae42bc3123bfbfb8fde837abb02b5c;p=xdecor.git Mailbox : don't fetch texture modifiers inside tablecolumns --- diff --git a/mailbox.lua b/mailbox.lua index 33be796..47bb26c 100644 --- a/mailbox.lua +++ b/mailbox.lua @@ -72,12 +72,12 @@ local function img_col(stack) if not stack then return "" end if stack.type == "node" then if stack.inventory_image ~= "" then - return stack.inventory_image + return string.match(stack.inventory_image, "([%w_]+)")..".png" else - return stack.tiles[1] + return string.match(stack.tiles[1], "([%w_]+)")..".png" end elseif stack.type == "tool" or stack.type == "craft" then - return stack.inventory_image + return string.match(stack.inventory_image, "([%w_]+)")..".png" else return "" end end