mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +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
|
||||
public void run() {
|
||||
if (!player.isDead()) {
|
||||
if (!kraken.isValid()) {
|
||||
this.cancel();
|
||||
}
|
||||
|
||||
if (player.isValid()) {
|
||||
Location location = player.getLocation();
|
||||
World world = player.getWorld();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user