diff options
author | SHsuperCM <shsupercm@gmail.com> | 2021-09-16 04:49:51 +0300 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2021-09-16 04:49:51 +0300 |
commit | b2ee9ea71a2d80bc888e7432e4cbfcbb2d9e5b90 (patch) | |
tree | b525be53aa82eacd19f9c92b2fec690edb2dd3ec /src | |
parent | a0d74c1cd675c2250e5d49b7bd55921e70aedc0e (diff) | |
download | CITResewn-b2ee9ea71a2d80bc888e7432e4cbfcbb2d9e5b90.tar.gz CITResewn-b2ee9ea71a2d80bc888e7432e4cbfcbb2d9e5b90.tar.bz2 CITResewn-b2ee9ea71a2d80bc888e7432e4cbfcbb2d9e5b90.zip |
Fixed crash when cit enchantmentLevels is specified
Fixes #26
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CIT.java | 2 |
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; |