mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Fix status effects scaling issue with non 16x texture packs
This commit is contained in:
parent
e80ce4b758
commit
695fab5f06
@ -41,7 +41,7 @@ local function potions_init_icons(player)
|
||||
text = "blank.png",
|
||||
position = { x = 1, y = 0 },
|
||||
offset = { x = x, y = 3 },
|
||||
scale = { x = 3, y = 3 },
|
||||
scale = { x = 0.375, y = 0.375 },
|
||||
alignment = { x = 1, y = 1 },
|
||||
z_index = 100,
|
||||
})
|
||||
@ -70,7 +70,7 @@ local function potions_set_icons(player)
|
||||
if effect_name == nil then
|
||||
player:hud_change(icon, "text", "blank.png")
|
||||
else
|
||||
player:hud_change(icon, "text", "mcl_potions_effect_"..effect_name..".png")
|
||||
player:hud_change(icon, "text", "mcl_potions_effect_"..effect_name..".png^[resize:128x128")
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user