fixed color of item bar bug

This commit is contained in:
sharlottes
2021-05-29 23:58:17 +09:00
parent 8936bed334
commit 39c2f17033
2 changed files with 10 additions and 8 deletions

View File

@@ -149,7 +149,7 @@ public class SBar extends Element{
}
Draw.color(color, blinkColor, blink);
float topWidthReal = width * computed;
float topWidthReal = width * (Math.min(value, computed));
if(topWidthReal > Core.atlas.find("unitinfo-bar-top").width){
top.draw(x, y, topWidthReal, height);