From fcf75a12ba94a96011b5f7af09792b0360011319 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 22 May 2021 15:33:17 +0200 Subject: [PATCH] Update Config --- .../src/de/steamwar/fightsystem/Config.java | 30 +------------------ 1 file changed, 1 insertion(+), 29 deletions(-) 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"));