From de912c1e077d8d231b84ca7d81f9d054aa019c7c Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Sat, 18 Jan 2014 20:49:56 +0100 Subject: [PATCH] Make sure the player is valid as well --- .../com/gmail/nossr50/runnables/skills/AlchemyBrewTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/runnables/skills/AlchemyBrewTask.java b/src/main/java/com/gmail/nossr50/runnables/skills/AlchemyBrewTask.java index f7bccd797..e63abe934 100644 --- a/src/main/java/com/gmail/nossr50/runnables/skills/AlchemyBrewTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/skills/AlchemyBrewTask.java @@ -58,7 +58,7 @@ public class AlchemyBrewTask extends BukkitRunnable { @Override public void run() { - if (brewingStand.getType() != Material.BREWING_STAND) { + if (player == null || !player.isValid() || brewingStand.getType() != Material.BREWING_STAND) { if (Alchemy.brewingStandMap.containsKey(brewingStand)) { Alchemy.brewingStandMap.remove(brewingStand); }