diff options
author | msg-programs <msgdoesstuff@gmail.com> | 2023-06-08 22:47:09 +0200 |
---|---|---|
committer | msg-programs <msgdoesstuff@gmail.com> | 2023-06-08 22:47:09 +0200 |
commit | 1931f2ce957d02374d8f2ce43dd2118e040d2103 (patch) | |
tree | 8773749f79925662a216887bff0a481ce60e632c /src | |
parent | 029b4dc43ba1a5cbeb0330085af64ba073e46d05 (diff) | |
download | Skyblocker-1931f2ce957d02374d8f2ce43dd2118e040d2103.tar.gz Skyblocker-1931f2ce957d02374d8f2ce43dd2118e040d2103.tar.bz2 Skyblocker-1931f2ce957d02374d8f2ce43dd2118e040d2103.zip |
Don't draw dwarven HUD when the tab HUD is open.
Also remove a redundant check
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/me/xmrvizzy/skyblocker/skyblock/dwarven/DwarvenHud.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/java/me/xmrvizzy/skyblocker/skyblock/dwarven/DwarvenHud.java b/src/main/java/me/xmrvizzy/skyblocker/skyblock/dwarven/DwarvenHud.java index 142a1856..15f9e58b 100644 --- a/src/main/java/me/xmrvizzy/skyblocker/skyblock/dwarven/DwarvenHud.java +++ b/src/main/java/me/xmrvizzy/skyblocker/skyblock/dwarven/DwarvenHud.java @@ -50,15 +50,17 @@ public class DwarvenHud { }))))); HudRenderCallback.EVENT.register((matrixStack, tickDelta) -> { - if (!SkyblockerConfig.get().locations.dwarvenMines.dwarvenHud.enabled || client.player == null || commissionList.isEmpty()) return; + if (!SkyblockerConfig.get().locations.dwarvenMines.dwarvenHud.enabled + || client.options.playerListKey.isPressed() + || client.player == null + || commissionList.isEmpty()) { + return; + } render(matrixStack, SkyblockerConfig.get().locations.dwarvenMines.dwarvenHud.x, SkyblockerConfig.get().locations.dwarvenMines.dwarvenHud.y, commissionList); }); } public static void render(MatrixStack matrixStack, int hudX, int hudY, List<Commission> commissions) { - if (commissions.size() <= 0) { - return; - } switch(SkyblockerConfig.get().locations.dwarvenMines.dwarvenHud.style) { case SIMPLE -> renderSimple(matrixStack, hudX, hudY, commissions); |