mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-01 16:19:53 +01:00
A dead kraken can't attack.
This commit is contained in:
parent
e7c749ee3a
commit
0033c8864e
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user