From 32375fb1c0725906f6e2dc99bdc1b683dfa992b2 Mon Sep 17 00:00:00 2001 From: Sorzon <64833512+Sorzon@users.noreply.github.com> Date: Sat, 16 May 2020 18:34:37 +0200 Subject: [PATCH] Added a 'biome' setting to the info overlay. --- .../zeroeightsix/kami/module/modules/client/InfoOverlay.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/client/InfoOverlay.java b/src/main/java/me/zeroeightsix/kami/module/modules/client/InfoOverlay.java index 625142e28..a6594a041 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/client/InfoOverlay.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/client/InfoOverlay.java @@ -42,6 +42,7 @@ public class InfoOverlay extends Module { private Setting fps = register(Settings.booleanBuilder("FPS").withValue(true).withVisibility(v -> page.getValue().equals(Page.ONE)).build()); private Setting ping = register(Settings.booleanBuilder("Ping").withValue(false).withVisibility(v -> page.getValue().equals(Page.ONE)).build()); private Setting durability = register(Settings.booleanBuilder("Item Damage").withValue(false).withVisibility(v -> page.getValue().equals(Page.ONE)).build()); + private Setting biome = register(Settings.booleanBuilder("Biome").withValue(false).withVisibility(v -> page.getValue().equals(Page.ONE)).build()); private Setting memory = register(Settings.booleanBuilder("RAM Used").withValue(false).withVisibility(v -> page.getValue().equals(Page.ONE)).build()); private Setting timerSpeed = register(Settings.booleanBuilder("Timer Speed").withValue(false).withVisibility(v -> page.getValue().equals(Page.ONE)).build()); /* Page Two */ @@ -88,6 +89,8 @@ public class InfoOverlay extends Module { infoContents.add(getStringColour(setToText(firstColour.getValue())) + InfoCalculator.ping(mc) + getStringColour(setToText(secondColour.getValue())) + " ms"); } if (durability.getValue()) { infoContents.add(getStringColour(setToText(firstColour.getValue())) + InfoCalculator.dura(mc) + getStringColour(setToText(secondColour.getValue())) + " dura"); + } if (biome.getValue()) { + infoContents.add(getStringColour(setToText(firstColour.getValue())) + mc.world.getBiome(mc.player.getPosition()).getBiomeName() + getStringColour(setToText(secondColour.getValue())) + " biome"); } if (memory.getValue()) { infoContents.add(getStringColour(setToText(firstColour.getValue())) + InfoCalculator.memory() + getStringColour(setToText(secondColour.getValue())) + "mB free"); } if (totems.getValue()) {