summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/Potions.java
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-12-01 02:51:40 +0000
committerKHobbits <rob@khobbits.co.uk>2013-12-05 23:03:32 +0000
commite411f612967af0c3fd1af5db640023e4191fcb86 (patch)
treeba0a946458fe6c56b6239090566142c62929b403 /Essentials/src/com/earth2me/essentials/Potions.java
parentcaa3ac88aa96ffe97ae9b7fbbfb5fd50306310b0 (diff)
downloadEssentials-e411f612967af0c3fd1af5db640023e4191fcb86.tar
Essentials-e411f612967af0c3fd1af5db640023e4191fcb86.tar.gz
Essentials-e411f612967af0c3fd1af5db640023e4191fcb86.tar.lz
Essentials-e411f612967af0c3fd1af5db640023e4191fcb86.tar.xz
Essentials-e411f612967af0c3fd1af5db640023e4191fcb86.zip
Update to first build of 1.7.2 - CraftBukkit is still buggy so expect issues
Bukkit: #1856 CB: #2922
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/Potions.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/Potions.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Potions.java b/Essentials/src/com/earth2me/essentials/Potions.java
index 7cc967ecb..e79237a0f 100644
--- a/Essentials/src/com/earth2me/essentials/Potions.java
+++ b/Essentials/src/com/earth2me/essentials/Potions.java
@@ -116,6 +116,19 @@ public class Potions
{
Essentials.wrongVersion();
}
+
+ try // 1.7 update
+ {
+ POTIONS.put("waterbreathing", PotionEffectType.WATER_BREATHING);
+ ALIASPOTIONS.put("underwaterbreathing", PotionEffectType.WATER_BREATHING);
+ ALIASPOTIONS.put("waterbreath", PotionEffectType.WATER_BREATHING);
+ ALIASPOTIONS.put("underwaterbreath", PotionEffectType.WATER_BREATHING);
+ ALIASPOTIONS.put("air", PotionEffectType.WATER_BREATHING);
+ }
+ catch (java.lang.NoSuchFieldError e)
+ {
+ Essentials.wrongVersion();
+ }
}
public static PotionEffectType getByName(String name)