diff --git a/Spigot-Server-Patches/Add-ArmorStand-Item-Meta.patch b/Spigot-Server-Patches/Add-ArmorStand-Item-Meta.patch index b4e1f4d3b9..8c0cdeaafa 100644 --- a/Spigot-Server-Patches/Add-ArmorStand-Item-Meta.patch +++ b/Spigot-Server-Patches/Add-ArmorStand-Item-Meta.patch @@ -356,7 +356,7 @@ index 000000000..c00b89c8d + } +} diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java -index 5e823e1b1..eaf4cd11c 100644 +index 2508cfcfa..570f695d8 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java @@ -0,0 +0,0 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable { diff --git a/Spigot-Server-Patches/Handle-Item-Meta-Inconsistencies.patch b/Spigot-Server-Patches/Handle-Item-Meta-Inconsistencies.patch index 2cce546860..d1c2dd16b8 100644 --- a/Spigot-Server-Patches/Handle-Item-Meta-Inconsistencies.patch +++ b/Spigot-Server-Patches/Handle-Item-Meta-Inconsistencies.patch @@ -201,7 +201,7 @@ index f907d4f3b..eeb2c5689 100644 static Map getEnchantments(net.minecraft.server.ItemStack item) { diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java -index 99a2c8c8b..5e823e1b1 100644 +index ef6437f38..2508cfcfa 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java @@ -0,0 +0,0 @@ import java.lang.reflect.Constructor; @@ -220,9 +220,9 @@ index 99a2c8c8b..5e823e1b1 100644 import net.minecraft.server.NBTBase; import net.minecraft.server.NBTTagCompound; import net.minecraft.server.NBTTagList; -@@ -0,0 +0,0 @@ import java.io.IOException; - import java.util.Arrays; +@@ -0,0 +0,0 @@ import java.util.Arrays; import java.util.EnumSet; + import java.util.LinkedHashMap; import java.util.Set; +import java.util.TreeMap; import java.util.logging.Level; @@ -250,7 +250,7 @@ index 99a2c8c8b..5e823e1b1 100644 } if (meta.enchantments != null) { // Spigot -- this.enchantments = new HashMap(meta.enchantments); +- this.enchantments = new LinkedHashMap(meta.enchantments); + this.enchantments = new EnchantmentMap(meta.enchantments); // Paper } @@ -266,7 +266,7 @@ index 99a2c8c8b..5e823e1b1 100644 } NBTTagList ench = tag.getList(key.NBT, CraftMagicNumbers.NBT.TAG_COMPOUND); -- Map enchantments = new HashMap(ench.size()); +- Map enchantments = new LinkedHashMap(ench.size()); + EnchantmentMap enchantments = new EnchantmentMap(); // Paper for (int i = 0; i < ench.size(); i++) { @@ -282,7 +282,7 @@ index 99a2c8c8b..5e823e1b1 100644 return null; } -- Map enchantments = new HashMap(ench.size()); +- Map enchantments = new LinkedHashMap(ench.size()); + EnchantmentMap enchantments = new EnchantmentMap(); // Paper for (Map.Entry entry : ench.entrySet()) { // Doctor older enchants @@ -298,7 +298,7 @@ index 99a2c8c8b..5e823e1b1 100644 public boolean addEnchant(Enchantment ench, int level, boolean ignoreRestrictions) { Validate.notNull(ench, "Enchantment cannot be null"); if (enchantments == null) { -- enchantments = new HashMap(4); +- enchantments = new LinkedHashMap(4); + enchantments = new EnchantmentMap(); // Paper } @@ -307,7 +307,7 @@ index 99a2c8c8b..5e823e1b1 100644 clone.lore = new ArrayList(this.lore); } if (this.enchantments != null) { -- clone.enchantments = new HashMap(this.enchantments); +- clone.enchantments = new LinkedHashMap(this.enchantments); + clone.enchantments = new EnchantmentMap(this.enchantments); // Paper } if (this.hasAttributeModifiers()) { diff --git a/Spigot-Server-Patches/Implement-an-API-for-CanPlaceOn-and-CanDestroy-NBT-v.patch b/Spigot-Server-Patches/Implement-an-API-for-CanPlaceOn-and-CanDestroy-NBT-v.patch index bbe75c02b0..3b009a9844 100644 --- a/Spigot-Server-Patches/Implement-an-API-for-CanPlaceOn-and-CanDestroy-NBT-v.patch +++ b/Spigot-Server-Patches/Implement-an-API-for-CanPlaceOn-and-CanDestroy-NBT-v.patch @@ -32,7 +32,7 @@ index 8e8390282..f52936581 100644 this.s = this::l; if (this.i.canRead() && this.i.peek() == '#') { diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java -index eaf4cd11c..be2e736eb 100644 +index 570f695d8..ec91ab72d 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java @@ -0,0 +0,0 @@ import javax.annotation.Nullable; diff --git a/work/CraftBukkit b/work/CraftBukkit index 4c8327f721..0bf75bbde2 160000 --- a/work/CraftBukkit +++ b/work/CraftBukkit @@ -1 +1 @@ -Subproject commit 4c8327f72112dba222c982259480b1e70893e095 +Subproject commit 0bf75bbde2df2a715d0e637e2c8972e904597b99 diff --git a/work/Spigot b/work/Spigot index 5629554b03..f09662d0ea 160000 --- a/work/Spigot +++ b/work/Spigot @@ -1 +1 @@ -Subproject commit 5629554b031cb43df270e834939ef13cf5e75a4d +Subproject commit f09662d0ea3632c3294c6db86bdcd92f68aac8c2