Fix status effects scaling issue with non 16x texture packs
parent
e80ce4b758
commit
695fab5f06
|
@ -41,7 +41,7 @@ local function potions_init_icons(player)
|
||||||
text = "blank.png",
|
text = "blank.png",
|
||||||
position = { x = 1, y = 0 },
|
position = { x = 1, y = 0 },
|
||||||
offset = { x = x, y = 3 },
|
offset = { x = x, y = 3 },
|
||||||
scale = { x = 3, y = 3 },
|
scale = { x = 0.375, y = 0.375 },
|
||||||
alignment = { x = 1, y = 1 },
|
alignment = { x = 1, y = 1 },
|
||||||
z_index = 100,
|
z_index = 100,
|
||||||
})
|
})
|
||||||
|
@ -70,7 +70,7 @@ local function potions_set_icons(player)
|
||||||
if effect_name == nil then
|
if effect_name == nil then
|
||||||
player:hud_change(icon, "text", "blank.png")
|
player:hud_change(icon, "text", "blank.png")
|
||||||
else
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue