diff options
author | jani270 <69345714+jani270@users.noreply.github.com> | 2024-04-20 04:44:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-20 12:44:28 +1000 |
commit | 5f325123eaed56dd25f1c3ecb7f6542e423aced7 (patch) | |
tree | e3b4c76905fd08bf0e3f0cd62ee10377613fd119 /src | |
parent | 9426bc2bcc227adf844c616119a998b49cd06013 (diff) | |
download | NotEnoughUpdates-5f325123eaed56dd25f1c3ecb7f6542e423aced7.tar.gz NotEnoughUpdates-5f325123eaed56dd25f1c3ecb7f6542e423aced7.tar.bz2 NotEnoughUpdates-5f325123eaed56dd25f1c3ecb7f6542e423aced7.zip |
meta: Fix Tonic Potion in ItemResolutionQuery (#1105)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java | 2 |
1 files changed, 1 insertions, 1 deletions
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; |