From 2f97a7ae69279d96a7d18b001c9867572a3069b3 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 6 Apr 2019 21:07:03 +0200 Subject: [PATCH] Fixed flight bar being offset by one pixel --- .../com/minelittlepony/unicopia/hud/FlightExperienceBar.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/hud/FlightExperienceBar.java b/src/main/java/com/minelittlepony/unicopia/hud/FlightExperienceBar.java index a0976736..7450a7f1 100644 --- a/src/main/java/com/minelittlepony/unicopia/hud/FlightExperienceBar.java +++ b/src/main/java/com/minelittlepony/unicopia/hud/FlightExperienceBar.java @@ -22,10 +22,10 @@ class FlightExperienceBar implements IHudElement { float length = context.player.getGravity().getFlightDuration(); context.mc.getTextureManager().bindTexture(TEXTURE); - int x = (context.width - 183) / 2; + int x = (context.width - 182) / 2; int y = context.height - 29; - int xpFill = (int)Math.floor(xp * 183); + int xpFill = (int)Math.floor(xp * 182); int xpBuff = (int)Math.floor((183 - xpFill) * length); int baseV = 0;