Skip to content

Commit

Permalink
Update StatsScreen.java
Browse files Browse the repository at this point in the history
  • Loading branch information
C10udburst authored Feb 22, 2024
1 parent c085806 commit 21600a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/anticope/rejects/gui/screens/StatsScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import meteordevelopment.orbit.EventHandler;
import meteordevelopment.meteorclient.MeteorClient;
import meteordevelopment.meteorclient.events.world.TickEvent;
import meteordevelopment.meteorclient.utils.world.TickRate;
import meteordevelopment.meteorclient.gui.GuiTheme;
import meteordevelopment.meteorclient.gui.GuiThemes;
import meteordevelopment.meteorclient.gui.WindowScreen;
Expand Down Expand Up @@ -48,10 +49,11 @@ private void updateData() {
effectList.action = () -> effectListExpanded = effectList.isExpanded();
liv.getActiveStatusEffects().forEach((effect, instance) -> {
String status = lang.get(effect.getTranslationKey());
float tps = TickRate.INSTANCE.getTickRate();
if (instance.getAmplifier() != 0) {
status += (String.format(" %d (%s)", instance.getAmplifier()+1, StatusEffectUtil.getDurationText(instance, 1, 20)));
status += (String.format(" %d (%s)", instance.getAmplifier()+1, StatusEffectUtil.getDurationText(instance, 1, tps)));
} else {
status += (String.format(" (%s)", StatusEffectUtil.getDurationText(instance, 1, 20)));
status += (String.format(" (%s)", StatusEffectUtil.getDurationText(instance, 1, tps)));
}
effectList.add(theme.label(status)).expandX();
});
Expand Down

0 comments on commit 21600a3

Please sign in to comment.