A dead kraken can't attack.

This commit is contained in:
GJ 2013-05-01 22:17:48 -04:00
parent e7c749ee3a
commit 0033c8864e

View File

@ -20,7 +20,11 @@ public class KrakenAttackTask extends BukkitRunnable {
@Override @Override
public void run() { public void run() {
if (!player.isDead()) { if (!kraken.isValid()) {
this.cancel();
}
if (player.isValid()) {
Location location = player.getLocation(); Location location = player.getLocation();
World world = player.getWorld(); World world = player.getWorld();