]> git.lizzy.rs Git - xdecor.git/commitdiff
mailbox.lua: Use [resize to resize correctly (#47)
authorSmallJoker <SmallJoker@users.noreply.github.com>
Mon, 30 May 2016 19:34:39 +0000 (21:34 +0200)
committerAuke Kok <sofar+github@foo-projects.org>
Mon, 30 May 2016 19:34:39 +0000 (12:34 -0700)
mailbox_blank16.png has still an use in nodes.lua for the trampoline node.

mailbox.lua

index 041133364ae6435d82a8e6430fa84e158bec96d5..1985eea888c06fbaaa2f87a44c35a90a35d9a862 100644 (file)
@@ -28,7 +28,7 @@ function mailbox:formspec(pos, owner, num)
                                giver = giver.."#FFFF00,"..giver_name..","..i..",#FFFFFF,x "..stack_count..","
                                -- Hack to force using a 16px resolution for images in formspec's tablecolumn.
                                -- The engine doesn't scale them automatically yet.
-                               img = img..i.."=mailbox_blank16.png^"..img_col(stack_name)..","
+                               img = img..i.."="..img_col(stack_name).."^\\[resize:16x16,"
                        end
                end