Fixed @unit not saving in logic blocks

This commit is contained in:
Anuken
2025-08-27 18:15:41 -04:00
parent 8613fc098c
commit e62c414efb
3 changed files with 21 additions and 7 deletions

View File

@@ -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){