diff --git a/FightSystem_API/src/de/steamwar/fightsystem/Config.java b/FightSystem_API/src/de/steamwar/fightsystem/Config.java index 5f3f2ba..55cccf3 100644 --- a/FightSystem_API/src/de/steamwar/fightsystem/Config.java +++ b/FightSystem_API/src/de/steamwar/fightsystem/Config.java @@ -192,35 +192,7 @@ public class Config { TimeoutTime = config.getInt("WinConditionParams.TimeoutTime"); PercentWin = config.getDouble("WinConditionParams.PercentWin"); - Blocks = config.getStringList("WinConditionParams.IgnoredBlocks").stream().map(Material::valueOf).collect(new Collector, Set>() { - @Override - public Supplier> supplier() { - return HashSet::new; - } - - @Override - public BiConsumer, Material> accumulator() { - return HashSet::add; - } - - @Override - public BinaryOperator> combiner() { - return (materials, materials2) -> { - materials.addAll(materials2); - return materials; - }; - } - - @Override - public Function, Set> finisher() { - return Collections::unmodifiableSet; - } - - @Override - public Set characteristics() { - return Collections.emptySet(); - } - }); + Blocks = config.getStringList("WinConditionParams.IgnoredBlocks").stream().map(Material::valueOf).collect(Collectors.toSet()); EnterStages = Collections.unmodifiableList(config.getIntegerList("EnterStages"));