Ensure player has mcMMOPlayer object in brewing

Fixes #2086
This commit is contained in:
TfT_02 2014-07-24 12:29:42 +02:00
parent 48c7aa3e84
commit 75cbfa1b1c

View File

@ -134,7 +134,10 @@ public final class AlchemyPotionBrewer {
if (output != null && player != null) { if (output != null && player != null) {
PotionStage potionStage = PotionStage.getPotionStage(input, output); PotionStage potionStage = PotionStage.getPotionStage(input, output);
UserManager.getPlayer(player).getAlchemyManager().handlePotionBrewSuccesses(potionStage, 1);
if (UserManager.hasPlayerDataKey(player)) {
UserManager.getPlayer(player).getAlchemyManager().handlePotionBrewSuccesses(potionStage, 1);
}
} }
} }