aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CIT.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CIT.java b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CIT.java
index e306cbe..5971b35 100644
--- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CIT.java
+++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CIT.java
@@ -289,7 +289,7 @@ public abstract class CIT {
if (!matches)
return false;
} else if (!enchantmentLevelsAny) {
- Collection<Integer> levels = EnchantmentHelper.get(stack).values();
+ Collection<Integer> levels = new ArrayList<>(EnchantmentHelper.get(stack).values());
levels.add(0);
boolean matches = false;