mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-28 13:45:32 +01:00
Correct comparison of more Potion types, fixes #955
This commit is contained in:
parent
4fda4413be
commit
29c427f1df
@ -139,7 +139,8 @@ public class LocaleQuery {
|
|||||||
}
|
}
|
||||||
if (meta != null && meta instanceof PotionMeta) {
|
if (meta != null && meta instanceof PotionMeta) {
|
||||||
matKey = "item.minecraft.potion.effect." + ((PotionMeta)meta).getBasePotionData().getType().name().toLowerCase()
|
matKey = "item.minecraft.potion.effect." + ((PotionMeta)meta).getBasePotionData().getType().name().toLowerCase()
|
||||||
.replace("regen", "regeneration").replace("speed", "swiftness");
|
.replace("regen", "regeneration").replace("speed", "swiftness").replace("jump", "leaping")
|
||||||
|
.replace("instant_heal", "healing").replace("instant_damage", "harming");
|
||||||
}
|
}
|
||||||
if (enchantments != null && !enchantments.isEmpty()) {
|
if (enchantments != null && !enchantments.isEmpty()) {
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user