Fix showing shield hud at the wrong side for half a second

This commit is contained in:
NO411 2022-03-19 15:59:59 +01:00
parent c94964d10a
commit d481f7b720
1 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ local function update_shield_entity(player, blocking, i)
end
end
local function add_shield_hud(shieldstack, player)
local function add_shield_hud(shieldstack, player, blocking)
local texture = hud
if mcl_enchanting.is_enchanted(shieldstack:get_name()) then
texture = texture .. overlay
@ -330,7 +330,7 @@ end
local function update_shield_hud(player, blocking, shieldstack)
local shieldhud = shield_hud[player]
if not shieldhud then
add_shield_hud(shieldstack, player)
add_shield_hud(shieldstack, player, blocking)
return
end