Check if brewingStand == null

Fixes #1804
This commit is contained in:
TfT_02 2014-01-20 22:38:20 +01:00
parent f39623c279
commit d1fcd6958f

View File

@ -57,7 +57,7 @@ public class AlchemyBrewTask extends BukkitRunnable {
@Override @Override
public void run() { public void run() {
if (player == null || !player.isValid() || brewingStand.getType() != Material.BREWING_STAND) { if (player == null || !player.isValid() || brewingStand == null || brewingStand.getType() != Material.BREWING_STAND) {
if (Alchemy.brewingStandMap.containsKey(brewingStand)) { if (Alchemy.brewingStandMap.containsKey(brewingStand)) {
Alchemy.brewingStandMap.remove(brewingStand); Alchemy.brewingStandMap.remove(brewingStand);
} }