mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-27 04:55:25 +01:00
Allow for lower case potion effect names.
This commit is contained in:
parent
409c3f6c14
commit
55e0500bae
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user