diff --git a/patches/org/bukkit/potion/PotionEffectType.java.patch b/patches/org/bukkit/potion/PotionEffectType.java.patch index 9a04c2c..6305a34 100644 --- a/patches/org/bukkit/potion/PotionEffectType.java.patch +++ b/patches/org/bukkit/potion/PotionEffectType.java.patch @@ -9,19 +9,18 @@ private static final Map byName = new HashMap(); // will break on updates. private static boolean acceptingNew = true; -@@ -216,9 +216,9 @@ +@@ -216,9 +216,7 @@ */ @Deprecated public static PotionEffectType getById(int id) { - if (id >= byId.length || id < 0) -+ if (id >= byId.size() || id < 0) // Cauldron - return null; +- return null; - return byId[id]; + return byId.get(id); // Cauldron } /** -@@ -240,15 +240,18 @@ +@@ -240,15 +238,18 @@ * @param type PotionType to register */ public static void registerPotionEffectType(PotionEffectType type) { @@ -42,7 +41,7 @@ } /** -@@ -264,6 +267,11 @@ +@@ -264,6 +265,11 @@ * @return Array of types. */ public static PotionEffectType[] values() {