Allow for lower case potion effect names.

This commit is contained in:
garbagemule 2014-12-08 16:43:15 +01:00
parent 409c3f6c14
commit 55e0500bae

View File

@ -95,7 +95,7 @@ public class PotionEffectParser
if (type.matches("[0-9]*")) {
effect = PotionEffectType.getById(Integer.parseInt(type));
} else {
effect = PotionEffectType.getByName(type);
effect = PotionEffectType.getByName(type.toUpperCase());
}
return effect;