mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed flight bar being offset by one pixel
This commit is contained in:
parent
578b000233
commit
2f97a7ae69
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue