diff --git a/src/main/java/se/icus/mag/statuseffecttimer/mixin/StatusEffectTimerMixin.java b/src/main/java/se/icus/mag/statuseffecttimer/mixin/StatusEffectTimerMixin.java index 6d75519..93dcc0d 100644 --- a/src/main/java/se/icus/mag/statuseffecttimer/mixin/StatusEffectTimerMixin.java +++ b/src/main/java/se/icus/mag/statuseffecttimer/mixin/StatusEffectTimerMixin.java @@ -24,8 +24,6 @@ @Environment(EnvType.CLIENT) @Mixin(InGameHud.class) public abstract class StatusEffectTimerMixin extends DrawableHelper { - public static final int TEXT_COLOR = 0x99FFFFFF; - @Shadow @Final private MinecraftClient client; @@ -59,11 +57,11 @@ private void renderDurationOverlay(MatrixStack matrices, CallbackInfo c) { String duration = getDurationAsString(statusEffectInstance); int durationLength = client.textRenderer.getWidth(duration); - drawStringWithShadow(matrices, client.textRenderer, duration, x + 13 - (durationLength / 2), y + 14, TEXT_COLOR); + drawStringWithShadow(matrices, client.textRenderer, duration, x + 13 - (durationLength / 2), y + 14, 0x99FFFFFF); String amplifier = getAmplifierAsString(statusEffectInstance); int amplifierLength = client.textRenderer.getWidth(amplifier); - drawStringWithShadow(matrices, client.textRenderer, amplifier, x + 22 - amplifierLength, y + 3, TEXT_COLOR); + drawStringWithShadow(matrices, client.textRenderer, amplifier, x + 22 - amplifierLength, y + 3, 0x99FFFFFF); } } }