prevent an exception from happening on boot due to unmodifiable set in the config codec

This commit is contained in:
2026-03-26 19:25:10 +01:00
parent c64ed18879
commit e56fc7c54b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -21,7 +21,7 @@
<maven.compiler.target>25</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<hytale.version>2026.03.26-89796e57b</hytale.version>
<revision>1.4.1</revision>
<revision>1.4.2</revision>
</properties>
<build>
@@ -18,7 +18,7 @@ public class QuickerStackerConfig {
.append(new KeyedCodec<>("QuickStackInteractions", Codec.STRING_ARRAY),
(config, value) -> {
config.quickStackInteractions = value;
config.quickStackInteractionSet = Collections.unmodifiableSet(new HashSet<>(Arrays.asList(config.quickStackInteractions)));
config.quickStackInteractionSet = new HashSet<>(Arrays.asList(config.quickStackInteractions));
},
(config) -> config.quickStackInteractions)
.documentation("List of interaction IDs that when detected on a block will cause QuickerStacker to attempt to add its own right click quick stack interaction. This only takes `Use` interaction type.")
@@ -28,7 +28,7 @@ public class QuickerStackerConfig {
public QuickerStackerConfig() {}
public Set<String> getQuickStackContainers() {
return quickStackInteractionSet;
return Collections.unmodifiableSet(quickStackInteractionSet);
}
}