From ff68a5182aa931499576ffdc563627dc1237486d Mon Sep 17 00:00:00 2001 From: Gerrygames Date: Mon, 28 Jan 2019 14:45:52 +0100 Subject: [PATCH] fix ConcurrentModificationException --- .../protocol1_12_2to1_13/packets/BlockItemPackets1_13.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12_2to1_13/packets/BlockItemPackets1_13.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12_2to1_13/packets/BlockItemPackets1_13.java index 2e211f3c..e95b096f 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12_2to1_13/packets/BlockItemPackets1_13.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12_2to1_13/packets/BlockItemPackets1_13.java @@ -634,7 +634,7 @@ public class BlockItemPackets1_13 extends BlockItemRewriter lore = new ArrayList<>(); - for (Tag enchantmentEntry : enchantments) { + for (Tag enchantmentEntry : enchantments.clone()) { if (enchantmentEntry instanceof CompoundTag) { CompoundTag enchEntry = new CompoundTag(""); String newId = (String) ((CompoundTag) enchantmentEntry).get("id").getValue();