mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-22 11:56:21 +01:00
Fixed armor hud not updating after rejoining
This commit is contained in:
parent
e2a5c3396d
commit
fb7a349bbf
@ -42,7 +42,7 @@ public class ArmorHudEmulation1_8 {
|
|||||||
private static double oldArmor = 0;
|
private static double oldArmor = 0;
|
||||||
|
|
||||||
public static void init() {
|
public static void init() {
|
||||||
ClientTickEvents.START_WORLD_TICK.register(world -> {
|
ClientTickEvents.START_CLIENT_TICK.register(world -> {
|
||||||
if (!VisualSettings.global().emulateArmorHud.isEnabled()) {
|
if (!VisualSettings.global().emulateArmorHud.isEnabled()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -56,6 +56,8 @@ public class ArmorHudEmulation1_8 {
|
|||||||
ViaFabricPlus.global().getLogger().error("Error sending armor update", t);
|
ViaFabricPlus.global().getLogger().error("Error sending armor update", t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
oldArmor = 0;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user