Fixed flight bar being offset by one pixel

This commit is contained in:
Sollace 2019-04-06 21:07:03 +02:00
parent 578b000233
commit 2f97a7ae69

View file

@ -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;