From b8fb29dc77b64594bf04cbec5a9453b35a295252 Mon Sep 17 00:00:00 2001 From: Aikar Date: Sun, 25 Jun 2017 19:40:06 -0400 Subject: [PATCH] SPIGOT-3381: Alias SWEEPING to SWEEPING_EDGE --- ...3381-Alias-SWEEPING-to-SWEEPING_EDGE.patch | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Spigot-API-Patches/SPIGOT-3381-Alias-SWEEPING-to-SWEEPING_EDGE.patch 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 new file mode 100644 index 0000000000..bd89973a13 --- /dev/null +++ b/Spigot-API-Patches/SPIGOT-3381-Alias-SWEEPING-to-SWEEPING_EDGE.patch @@ -0,0 +1,21 @@ +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