Allow for lower case potion effect names.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user