Mailbox : don't fetch texture modifiers inside tablecolumns

This commit is contained in:
jp 2015-11-26 13:04:48 +01:00
parent a1f8e9e6bf
commit d742c54548

View 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