Allow for lower case potion effect names.
This commit is contained in:
@@ -95,7 +95,7 @@ public class PotionEffectParser
|
|||||||
if (type.matches("[0-9]*")) {
|
if (type.matches("[0-9]*")) {
|
||||||
effect = PotionEffectType.getById(Integer.parseInt(type));
|
effect = PotionEffectType.getById(Integer.parseInt(type));
|
||||||
} else {
|
} else {
|
||||||
effect = PotionEffectType.getByName(type);
|
effect = PotionEffectType.getByName(type.toUpperCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
return effect;
|
return effect;
|
||||||
|
|||||||
Reference in New Issue
Block a user