From ecd1162c2d6ce2d76059fb2f9b88aa9782a7a40d Mon Sep 17 00:00:00 2001 From: talamh Date: Thu, 6 Oct 2022 21:15:15 +0100 Subject: [PATCH] Fix offhand hud slot incorrect scaling with non 16x texture packs --- mods/HUD/mcl_offhand/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/HUD/mcl_offhand/init.lua b/mods/HUD/mcl_offhand/init.lua index 5f48eede9..98954b4f5 100644 --- a/mods/HUD/mcl_offhand/init.lua +++ b/mods/HUD/mcl_offhand/init.lua @@ -70,8 +70,8 @@ minetest.register_globalstep(function(dtime) hud_elem_type = "image", position = position, offset = offset, - scale = {x = 2.75, y = 2.75}, - text = "mcl_offhand_slot.png", + scale = {x = 0.46875, y = 0.46875}, + text = "mcl_offhand_slot.png" .. "^[resize:" .. max_offhand_px .. "x" .. max_offhand_px, z_index = 0, }) end @@ -80,7 +80,7 @@ minetest.register_globalstep(function(dtime) hud_elem_type = "image", position = position, offset = offset, - scale = {x = 0.4, y = 0.4}, + scale = {x = 0.375, y = 0.375}, text = item_texture, z_index = 1, })