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

A dead kraken can't attack.

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

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