aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2021-09-16 04:49:51 +0300
committerSHsuperCM <shsupercm@gmail.com>2021-09-16 04:49:51 +0300
commitb2ee9ea71a2d80bc888e7432e4cbfcbb2d9e5b90 (patch)
treeb525be53aa82eacd19f9c92b2fec690edb2dd3ec /src/main/java
parenta0d74c1cd675c2250e5d49b7bd55921e70aedc0e (diff)
downloadCITResewn-b2ee9ea71a2d80bc888e7432e4cbfcbb2d9e5b90.tar.gz
CITResewn-b2ee9ea71a2d80bc888e7432e4cbfcbb2d9e5b90.tar.bz2
CITResewn-b2ee9ea71a2d80bc888e7432e4cbfcbb2d9e5b90.zip
Fixed crash when cit enchantmentLevels is specified
Fixes #26
Diffstat (limited to 'src/main/java')
-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;