diff --git a/src/main/java/appeng/crafting/pattern/EncodedProcessingPattern.java b/src/main/java/appeng/crafting/pattern/EncodedProcessingPattern.java index 2657780d50b..6489eafa6f8 100644 --- a/src/main/java/appeng/crafting/pattern/EncodedProcessingPattern.java +++ b/src/main/java/appeng/crafting/pattern/EncodedProcessingPattern.java @@ -1,5 +1,6 @@ package appeng.crafting.pattern; +import java.util.Collections; import java.util.List; import java.util.stream.Stream; @@ -17,8 +18,8 @@ public record EncodedProcessingPattern( List sparseInputs, List sparseOutputs) { public EncodedProcessingPattern { - sparseInputs = List.copyOf(sparseInputs); - sparseOutputs = List.copyOf(sparseOutputs); + sparseInputs = Collections.unmodifiableList(sparseInputs); + sparseOutputs = Collections.unmodifiableList(sparseOutputs); } public static final Codec CODEC = RecordCodecBuilder.create(builder -> builder.group(