Update RespawnRunnable.java

This commit is contained in:
Luca 2021-11-22 17:04:07 +01:00
parent 30ca71cd06
commit 86413e60a0

View File

@ -31,6 +31,10 @@ public class RespawnRunnable extends BukkitRunnable {
cancel();
return;
}
if (this.playerData.getPlayerState() != PlayerState.RESPAWNING || this.playerData.getPlayerState() != PlayerState.PLAYING) {
cancel();
return;
}
if (this.respawnTime <= 1) {
this.playerData.setPlayerState(PlayerState.PLAYING);