Fixed #3133 (probably) / Logic icon draw command
This commit is contained in:
@@ -640,6 +640,8 @@ public class HudFragment extends Fragment{
|
||||
public void draw(){
|
||||
float next = amount.get();
|
||||
|
||||
if(Float.isNaN(next) || Float.isInfinite(next)) next = 1f;
|
||||
|
||||
if(next < last && flash.get()){
|
||||
blink = 1f;
|
||||
}
|
||||
@@ -648,6 +650,8 @@ public class HudFragment extends Fragment{
|
||||
value = Mathf.lerpDelta(value, next, 0.15f);
|
||||
last = next;
|
||||
|
||||
if(Float.isNaN(value) || Float.isInfinite(value)) value = 1f;
|
||||
|
||||
drawInner(Pal.darkishGray);
|
||||
|
||||
Draw.beginStencil();
|
||||
|
||||
Reference in New Issue
Block a user