mirror of
https://github.com/YouHaveTrouble/QuickerStacker.git
synced 2026-05-11 21:56:55 +00:00
prevent an exception from happening on boot due to unmodifiable set in the config codec
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user