From d481f7b72041ca5961755dfdb45d039ef4bd1c20 Mon Sep 17 00:00:00 2001 From: NO411 Date: Sat, 19 Mar 2022 15:59:59 +0100 Subject: [PATCH] Fix showing shield hud at the wrong side for half a second --- mods/ITEMS/mcl_shields/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_shields/init.lua b/mods/ITEMS/mcl_shields/init.lua index 5237e53521..ad859f9c3a 100644 --- a/mods/ITEMS/mcl_shields/init.lua +++ b/mods/ITEMS/mcl_shields/init.lua @@ -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