Fixed @unit not saving in logic blocks
This commit is contained in:
@@ -369,6 +369,10 @@ public class StatValues{
|
||||
}
|
||||
|
||||
public static <T extends UnlockableContent> StatValue content(Seq<T> list, Boolf<T> check){
|
||||
return content(list, check, "@none.inmap");
|
||||
}
|
||||
|
||||
public static <T extends UnlockableContent> StatValue content(Seq<T> list, Boolf<T> check, String noneText){
|
||||
return table -> table.table(l -> {
|
||||
l.left();
|
||||
|
||||
@@ -387,7 +391,7 @@ public class StatValues{
|
||||
}
|
||||
|
||||
if(!any){
|
||||
l.add("@none.inmap");
|
||||
l.add(noneText);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -401,7 +405,7 @@ public class StatValues{
|
||||
}
|
||||
|
||||
public static StatValue statusEffects(Seq<StatusEffect> list){
|
||||
return content(list.as());
|
||||
return content(list.as(), t -> true, "@none");
|
||||
}
|
||||
|
||||
public static StatValue drillables(float drillTime, float drillMultiplier, float size, ObjectFloatMap<Item> multipliers, Boolf<Block> filter){
|
||||
|
||||
Reference in New Issue
Block a user