diff --git a/Spigot-API-Patches/SPIGOT-3381-Alias-SWEEPING-to-SWEEPING_EDGE.patch b/Spigot-API-Patches/SPIGOT-3381-Alias-SWEEPING-to-SWEEPING_EDGE.patch deleted file mode 100644 index bd89973a13..0000000000 --- a/Spigot-API-Patches/SPIGOT-3381-Alias-SWEEPING-to-SWEEPING_EDGE.patch +++ /dev/null @@ -1,21 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Aikar -Date: Sun, 25 Jun 2017 19:38:09 -0400 -Subject: [PATCH] SPIGOT-3381: Alias SWEEPING to SWEEPING_EDGE - - -diff --git a/src/main/java/org/bukkit/enchantments/Enchantment.java b/src/main/java/org/bukkit/enchantments/Enchantment.java -index ac3a7f99..448fd8f8 100644 ---- a/src/main/java/org/bukkit/enchantments/Enchantment.java -+++ b/src/main/java/org/bukkit/enchantments/Enchantment.java -@@ -0,0 +0,0 @@ public abstract class Enchantment { - * @return Resulting Enchantment, or null if not found - */ - public static Enchantment getByName(String name) { -+ if ("SWEEPING".equals(name)) { -+ name = "SWEEPING_EDGE"; -+ } - return byName.get(name); - } - --- \ No newline at end of file diff --git a/Spigot-Server-Patches/Handle-Item-Meta-Inconsistencies.patch b/Spigot-Server-Patches/Handle-Item-Meta-Inconsistencies.patch index e43dae5bbb..6561ab6f5f 100644 --- a/Spigot-Server-Patches/Handle-Item-Meta-Inconsistencies.patch +++ b/Spigot-Server-Patches/Handle-Item-Meta-Inconsistencies.patch @@ -144,7 +144,7 @@ index 3f11e4279..ebb3e04bc 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 2bf7e9f35..523c14df0 100644 +index 724da6772..935cbe867 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.annotation.RetentionPolicy; @@ -238,8 +238,8 @@ index 2bf7e9f35..523c14df0 100644 - Map enchantments = new HashMap(ench.size()); + EnchantmentMap enchantments = new EnchantmentMap(); // Paper for (Map.Entry entry : ench.entrySet()) { - Enchantment enchantment = Enchantment.getByName(entry.getKey().toString()); - + // Doctor older enchants + String enchantKey = entry.getKey().toString(); @@ -0,0 +0,0 @@ class CraftMetaItem implements ItemMeta, Repairable { } diff --git a/work/CraftBukkit b/work/CraftBukkit index d7cd7275f2..9de5cb59a0 160000 --- a/work/CraftBukkit +++ b/work/CraftBukkit @@ -1 +1 @@ -Subproject commit d7cd7275f28ce2ace4dc2051e77a9c5ec80743f1 +Subproject commit 9de5cb59a07a5539caf2a30073e4c734ad58019d