From afb295ec22bf1fcc89ea2908b4124893c0801c98 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Wed, 10 Mar 2021 12:26:28 -0500 Subject: [PATCH] fix trash slot list[] offset (only noticable when listcolors[] allows slots to be visible, i.e. on mouseover) --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.lua b/api.lua index c556955..cb0786f 100644 --- a/api.lua +++ b/api.lua @@ -317,7 +317,7 @@ function ui.make_trash_slot(xpos, ypos) return ui.single_slot(xpos, ypos).. "image["..xpos..","..ypos..";1.25,1.25;ui_trash_slot_icon.png^[opacity:95]".. - "list[detached:trash;main;"..xpos..","..ypos..";1,1;]" + "list[detached:trash;main;"..(xpos + ui.list_img_offset)..","..(ypos + ui.list_img_offset)..";1,1;]" end function ui.make_inv_img_grid(xpos, ypos, width, height, bright)