forked from VoxeLibre/VoxeLibre
Merge pull request 'Fix status effects scaling issue with non 16x texture packs' (#2758) from talamh/MineClone2:status_effects_fix into master
Reviewed-on: MineClone2/MineClone2#2758 Reviewed-by: cora <cora@noreply.git.minetest.land>
This commit is contained in:
commit
f8377c77cb
|
@ -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