Better block hover info / Liquids source crash fix / Generator fix

This commit is contained in:
Anuken
2019-02-02 18:03:52 -05:00
parent 8e8e95cd2d
commit 203612853b
9 changed files with 67 additions and 18 deletions

View File

@@ -32,8 +32,10 @@ public class Bar extends Element{
public Bar(Supplier<String> name, Supplier<Color> color, FloatProvider fraction){
this.fraction = fraction;
lastValue = value = fraction.get();
update(() -> {
this.name = name.get();
this.blinkColor.set(color.get());
setColor(color.get());
});
}