mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-11-10 22:00:50 +01:00
A dead kraken can't attack.
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user