Correct comparison of more Potion types, fixes #955

This commit is contained in:
PikaMug 2019-10-09 01:03:21 -04:00
parent 4fda4413be
commit 29c427f1df

View File

@ -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;