mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 11:53:29 +01:00
move the aura cache display to the left if there's an item in the off hand
This commit is contained in:
parent
acec248981
commit
745afd6975
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ public class ClientEvents {
|
||||||
if (!stack.isEmpty()) {
|
if (!stack.isEmpty()) {
|
||||||
IAuraContainer container = stack.getCapability(Capabilities.auraContainer, null);
|
IAuraContainer container = stack.getCapability(Capabilities.auraContainer, null);
|
||||||
int width = MathHelper.ceil(container.getStoredAura() / (float) container.getMaxAura() * 80);
|
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;
|
int y = res.getScaledHeight() - 8;
|
||||||
|
|
||||||
GlStateManager.pushMatrix();
|
GlStateManager.pushMatrix();
|
||||||
|
|
Loading…
Reference in a new issue