1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-07-04 06:34:44 +02:00

Ensure player has mcMMOPlayer object in brewing

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

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