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,9 +134,12 @@ public final class AlchemyPotionBrewer {
if (output != null && player != null) {
PotionStage potionStage = PotionStage.getPotionStage(input, output);
if (UserManager.hasPlayerDataKey(player)) {
UserManager.getPlayer(player).getAlchemyManager().handlePotionBrewSuccesses(potionStage, 1);
}
}
}
if (!forced) {
scheduleUpdate(inventory);