From 09f9a8ce327b4b93e6889797c92104ba067563a0 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Mon, 29 Sep 2025 17:33:02 +0200 Subject: [PATCH] Fix GameModeConfig --- .../src/de/steamwar/bausystem/region/GameModeConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/region/GameModeConfig.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/region/GameModeConfig.java index e0197661..82d59036 100644 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/region/GameModeConfig.java +++ b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/region/GameModeConfig.java @@ -121,7 +121,7 @@ public class GameModeConfig { private void load(ConfigurationSection section) { Active = section.getBoolean("Active", false); ObfuscateWith = Material.getMaterial(section.getString("ObfuscateWith", "END_STONE")); - HiddenBlocks = section.getStringList("HiddenBlocks").stream().map(FlatteningWrapper.impl::getMaterial).filter(Objects::nonNull).collect(Collectors.toUnmodifiableSet()); + HiddenBlocks = section.getStringList("HiddenBlocks").stream().map(String::toUpperCase).map(FlatteningWrapper.impl::getMaterial).filter(Objects::nonNull).collect(Collectors.toUnmodifiableSet()); HiddenBlockEntities = Collections.unmodifiableSet(new HashSet<>(section.getStringList("HiddenBlockEntities"))); } }