Compare commits

...

4 Commits

Author SHA1 Message Date
nossr50
175526d3da 2.2.037 2025-05-25 11:37:35 -07:00
nossr50
1430ea2979 Merge branch 'master' of https://github.com/mcMMO-Dev/mcMMO 2025-05-25 11:23:31 -07:00
nossr50
b54db979f5 update changelog 2025-05-25 11:23:23 -07:00
Jake Ben-Tovim
045f1bdfb6
fix matchPotionType: correctly match extended and upgraded potions fixes #5181 2025-05-25 11:21:36 -07:00
3 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,6 @@
Version 2.2.037
Fixed bug where Alchemy was not matching potions correctly and producing incorrect results (Thanks TheBentoBox)
Version 2.2.036
Fixed a bug where Chimaera Wing could cause an exception when used
Fixed bug where Mob Spawners could drop in Blast Mining (thanks TomBock)

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId>
<version>2.2.037-SNAPSHOT</version>
<version>2.2.037</version>
<name>mcMMO</name>
<url>https://github.com/mcMMO-Dev/mcMMO</url>
<scm>

View File

@ -79,8 +79,8 @@ public class PotionUtil {
String updatedName = convertLegacyNames(partialName).toUpperCase();
return Arrays.stream(PotionType.values())
.filter(potionType -> getKeyGetKey(potionType).toUpperCase().contains(updatedName))
.filter(potionType -> !isUpgraded || potionType.name().toUpperCase().contains(STRONG))
.filter(potionType -> !isExtended || potionType.name().toUpperCase().contains(LONG))
.filter(potionType -> isUpgraded == potionType.name().toUpperCase().startsWith(STRONG + "_"))
.filter(potionType -> isExtended == potionType.name().toUpperCase().startsWith(LONG + "_"))
.findAny().orElse(null);
}
}