From 5f325123eaed56dd25f1c3ecb7f6542e423aced7 Mon Sep 17 00:00:00 2001 From: jani270 <69345714+jani270@users.noreply.github.com> Date: Sat, 20 Apr 2024 04:44:28 +0200 Subject: meta: Fix Tonic Potion in ItemResolutionQuery (#1105) --- .../io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java index 27c04ca2..b6be1171 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java @@ -343,7 +343,7 @@ public class ItemResolutionQuery { private String resolvePotionName() { String potion = getExtraAttributes().getString("potion"); int potionLvl = getExtraAttributes().getInteger("potion_level"); - String potionName = getExtraAttributes().getString("potion_name"); + String potionName = getExtraAttributes().getString("potion_name").replace(" ", "_"); String potionType = getExtraAttributes().getString("potion_type"); if (potionName != null && !potionName.isEmpty()) { return "POTION_" + potionName.toUpperCase(Locale.ROOT) + ";" + potionLvl; -- cgit