Threads update

This commit is contained in:
Anuken
2022-06-09 09:52:44 -04:00
parent 1920e4399b
commit dc6617cfad
4 changed files with 4 additions and 4 deletions

View File

@@ -214,7 +214,7 @@ public class Vars implements Loadable{
public static Locale[] locales;
//the main executor will only have at most [cores] number of threads active
public static ExecutorService mainExecutor = Threads.cachedExecutor(1, OS.cores, true);
public static ExecutorService mainExecutor = Threads.executor("Main Executor", OS.cores);
public static FileTree tree = new FileTree();
public static Net net;

View File

@@ -70,7 +70,7 @@ public class StatValues{
public static StatValue liquids(Boolf<Liquid> filter, float amount, boolean perSecond){
return table -> {
Seq<Liquid> list = content.liquids().select(i -> filter.get(i) && i.unlockedNow());
Seq<Liquid> list = content.liquids().select(i -> filter.get(i) && i.unlockedNow() && !i.isHidden());
for(int i = 0; i < list.size; i++){
table.add(new LiquidDisplay(list.get(i), amount, perSecond)).padRight(5);
@@ -120,7 +120,7 @@ public class StatValues{
public static StatValue items(float timePeriod, Boolf<Item> filter){
return table -> {
Seq<Item> list = content.items().select(i -> filter.get(i) && i.unlockedNow());
Seq<Item> list = content.items().select(i -> filter.get(i) && i.unlockedNow() && !i.isHidden());
for(int i = 0; i < list.size; i++){
Item item = list.get(i);