Fix AlchemyBrew NPE

This commit is contained in:
nossr50 2019-04-14 04:55:37 -07:00
parent 273dfbbdce
commit 5a56b27ea8
3 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,9 @@ Key:
! Change
- Removal
Version 2.1.44
Fixed a NPE with Alchemy brewing
Version 2.1.43
Fixed a bug that would result in players being told they they failed to salvage enchantments when in reality they succeeded.

View File

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

View File

@ -93,7 +93,7 @@ public final class AlchemyPotionBrewer {
}
private static List<ItemStack> getValidIngredients(Player player) {
if(UserManager.getPlayer(player) != null)
if(UserManager.getPlayer(player) == null)
{
return PotionConfig.getInstance().getIngredients(1);
}