From 29c427f1df7cf7ed838d73add518566a6e20adae Mon Sep 17 00:00:00 2001 From: PikaMug Date: Wed, 9 Oct 2019 01:03:21 -0400 Subject: [PATCH] Correct comparison of more Potion types, fixes #955 --- main/src/main/java/me/blackvein/quests/util/LocaleQuery.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/src/main/java/me/blackvein/quests/util/LocaleQuery.java b/main/src/main/java/me/blackvein/quests/util/LocaleQuery.java index 27e5b9dbe..886e3a3ca 100644 --- a/main/src/main/java/me/blackvein/quests/util/LocaleQuery.java +++ b/main/src/main/java/me/blackvein/quests/util/LocaleQuery.java @@ -139,7 +139,8 @@ public class LocaleQuery { } if (meta != null && meta instanceof PotionMeta) { 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()) { int count = 0;