forked from Upstream/mmocore
Properly cancel cast particles if player is offline or dead.
(Prevents another 'Player must be online' error from happening)
This commit is contained in:
parent
5e0999e173
commit
ec13e4bf16
@ -134,8 +134,9 @@ public class SpellCast implements Listener {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (!playerData.isOnline() || playerData.getPlayer().isDead())
|
if (!playerData.isOnline() || playerData.getPlayer().isDead()) {
|
||||||
close();
|
close(); return;
|
||||||
|
}
|
||||||
|
|
||||||
if (j % 20 == 0)
|
if (j % 20 == 0)
|
||||||
playerData.displayActionBar(getFormat(playerData));
|
playerData.displayActionBar(getFormat(playerData));
|
||||||
|
Loading…
Reference in New Issue
Block a user