From 745afd69754407b968d0b7da852d87746df60f19 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 24 Oct 2018 15:07:37 +0200 Subject: [PATCH] move the aura cache display to the left if there's an item in the off hand --- src/main/java/de/ellpeck/naturesaura/events/ClientEvents.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/naturesaura/events/ClientEvents.java b/src/main/java/de/ellpeck/naturesaura/events/ClientEvents.java index 15e5fda1..70723386 100644 --- a/src/main/java/de/ellpeck/naturesaura/events/ClientEvents.java +++ b/src/main/java/de/ellpeck/naturesaura/events/ClientEvents.java @@ -165,7 +165,7 @@ public class ClientEvents { if (!stack.isEmpty()) { IAuraContainer container = stack.getCapability(Capabilities.auraContainer, null); int width = MathHelper.ceil(container.getStoredAura() / (float) container.getMaxAura() * 80); - int x = res.getScaledWidth() / 2 - 173; + int x = res.getScaledWidth() / 2 - 173 - (mc.player.getHeldItemOffhand().isEmpty() ? 0 : 29); int y = res.getScaledHeight() - 8; GlStateManager.pushMatrix();