diff --git a/src/main/java/vazkii/botania/client/core/handler/HUDHandler.java b/src/main/java/vazkii/botania/client/core/handler/HUDHandler.java index e57d033ae..21fbb0301 100644 --- a/src/main/java/vazkii/botania/client/core/handler/HUDHandler.java +++ b/src/main/java/vazkii/botania/client/core/handler/HUDHandler.java @@ -88,19 +88,21 @@ public final class HUDHandler { if(event.getType() == ElementType.ALL) { profiler.startSection("botania-hud"); - - ItemStack tiara = EquipmentHandler.findOrEmpty(ModItems.flightTiara, mc.player); - if(!tiara.isEmpty()) { - profiler.startSection("flugelTiara"); - ItemFlightTiara.renderHUD(mc.player, tiara); - profiler.endSection(); - } - ItemStack dodgeRing = EquipmentHandler.findOrEmpty(ModItems.dodgeRing, mc.player); - if(!dodgeRing.isEmpty()) { - profiler.startSection("dodgeRing"); - ItemDodgeRing.renderHUD(mc.player, dodgeRing, event.getPartialTicks()); - profiler.endSection(); + if (Minecraft.getInstance().playerController.shouldDrawHUD()) { + ItemStack tiara = EquipmentHandler.findOrEmpty(ModItems.flightTiara, mc.player); + if(!tiara.isEmpty()) { + profiler.startSection("flugelTiara"); + ItemFlightTiara.renderHUD(mc.player, tiara); + profiler.endSection(); + } + + ItemStack dodgeRing = EquipmentHandler.findOrEmpty(ModItems.dodgeRing, mc.player); + if(!dodgeRing.isEmpty()) { + profiler.startSection("dodgeRing"); + ItemDodgeRing.renderHUD(mc.player, dodgeRing, event.getPartialTicks()); + profiler.endSection(); + } } RayTraceResult pos = mc.objectMouseOver;