Update Config
Dieser Commit ist enthalten in:
Ursprung
be241a0c1e
Commit
fcf75a12ba
@ -192,35 +192,7 @@ public class Config {
|
|||||||
|
|
||||||
TimeoutTime = config.getInt("WinConditionParams.TimeoutTime");
|
TimeoutTime = config.getInt("WinConditionParams.TimeoutTime");
|
||||||
PercentWin = config.getDouble("WinConditionParams.PercentWin");
|
PercentWin = config.getDouble("WinConditionParams.PercentWin");
|
||||||
Blocks = config.getStringList("WinConditionParams.IgnoredBlocks").stream().map(Material::valueOf).collect(new Collector<Material, HashSet<Material>, Set<Material>>() {
|
Blocks = config.getStringList("WinConditionParams.IgnoredBlocks").stream().map(Material::valueOf).collect(Collectors.toSet());
|
||||||
@Override
|
|
||||||
public Supplier<HashSet<Material>> supplier() {
|
|
||||||
return HashSet::new;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public BiConsumer<HashSet<Material>, Material> accumulator() {
|
|
||||||
return HashSet::add;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public BinaryOperator<HashSet<Material>> combiner() {
|
|
||||||
return (materials, materials2) -> {
|
|
||||||
materials.addAll(materials2);
|
|
||||||
return materials;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Function<HashSet<Material>, Set<Material>> finisher() {
|
|
||||||
return Collections::unmodifiableSet;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Set<Characteristics> characteristics() {
|
|
||||||
return Collections.emptySet();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
EnterStages = Collections.unmodifiableList(config.getIntegerList("EnterStages"));
|
EnterStages = Collections.unmodifiableList(config.getIntegerList("EnterStages"));
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren