fix armor ui not showing sometimes

This commit is contained in:
Lee 2023-03-07 23:33:25 +00:00
parent 576d86408c
commit 2dda3f17e3
3 changed files with 3 additions and 3 deletions

@ -75,7 +75,7 @@ public class OverlayAddon extends Addon {
}
}
if (ActivePotionsListener.getActivePotions().size() > 0) {
if (ArmorListener.getArmorMultipliers().size() > 0) {
lastY += 3;
renderer.drawWithShadow(matrixStack, "§7§nArmor Multipliers:", 5, lastY, 0xffffff);
lastY += 11;

@ -24,7 +24,7 @@ public class ArmorListener implements EventListener {
@Getter private static Map<String, Double> armorMultipliers = new HashMap<>();
@Override
public void onTick(int ticksPassed) { // TODO: move to its own thread
public void onTick(int ticksPassed) {
if (ticksPassed % 20 != 0) {
return;
}

@ -13,7 +13,7 @@ public class TpsMonitor implements EventListener {
private static long worldTicks = 0;
@Override
public void onPacketReceive(Packet<?> packet) { // TODO: move to its own thread?
public void onPacketReceive(Packet<?> packet) {
if (!(packet instanceof WorldTimeUpdateS2CPacket)) {
return;
}