mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Make sure the player is valid as well
This commit is contained in:
parent
2159aa91ff
commit
de912c1e07
@ -58,7 +58,7 @@ public class AlchemyBrewTask extends BukkitRunnable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (brewingStand.getType() != Material.BREWING_STAND) {
|
if (player == null || !player.isValid() || brewingStand.getType() != Material.BREWING_STAND) {
|
||||||
if (Alchemy.brewingStandMap.containsKey(brewingStand)) {
|
if (Alchemy.brewingStandMap.containsKey(brewingStand)) {
|
||||||
Alchemy.brewingStandMap.remove(brewingStand);
|
Alchemy.brewingStandMap.remove(brewingStand);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user