geforkt von Mirrors/Paper
SPIGOT-3381: Alias SWEEPING to SWEEPING_EDGE
Dieser Commit ist enthalten in:
Ursprung
dedf848bea
Commit
b3d6ec2d26
@ -0,0 +1,23 @@
|
||||
From 2234ffe16ceb4a94a8a90f850e59ff79dc8751a5 Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
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
|
||||
@@ -325,6 +325,9 @@ 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);
|
||||
}
|
||||
|
||||
--
|
||||
2.13.0
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren