Fix showing shield hud at the wrong side for half a second
This commit is contained in:
parent
c94964d10a
commit
d481f7b720
|
@ -303,7 +303,7 @@ local function update_shield_entity(player, blocking, i)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function add_shield_hud(shieldstack, player)
|
local function add_shield_hud(shieldstack, player, blocking)
|
||||||
local texture = hud
|
local texture = hud
|
||||||
if mcl_enchanting.is_enchanted(shieldstack:get_name()) then
|
if mcl_enchanting.is_enchanted(shieldstack:get_name()) then
|
||||||
texture = texture .. overlay
|
texture = texture .. overlay
|
||||||
|
@ -330,7 +330,7 @@ end
|
||||||
local function update_shield_hud(player, blocking, shieldstack)
|
local function update_shield_hud(player, blocking, shieldstack)
|
||||||
local shieldhud = shield_hud[player]
|
local shieldhud = shield_hud[player]
|
||||||
if not shieldhud then
|
if not shieldhud then
|
||||||
add_shield_hud(shieldstack, player)
|
add_shield_hud(shieldstack, player, blocking)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user