]> git.lizzy.rs Git - xdecor.git/commitdiff
Mailbox : don't fetch texture modifiers inside tablecolumns
authorjp <jeanpatrick.guerrero@gmail.com>
Thu, 26 Nov 2015 12:04:48 +0000 (13:04 +0100)
committerjp <jeanpatrick.guerrero@gmail.com>
Thu, 26 Nov 2015 12:04:48 +0000 (13:04 +0100)
mailbox.lua

index 33be796abac3d1b43d76e92cea05f1b378d2cd5d..47bb26c7afe3ab9bb1f54c2abbe4267961b78d1e 100644 (file)
@@ -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