SPIGOT-7009: Stuck on "Loading terrain..." after disconnecting on respawn screen

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2022-06-03 09:19:53 +10:00
parent 77f366d383
commit 462a5fddbf

View File

@ -78,15 +78,6 @@
}
}
@@ -563,7 +609,7 @@
protected void tickDeath() {
++this.deathTime;
- if (this.deathTime == 20 && !this.level.isClientSide()) {
+ if (this.deathTime >= 20 && !this.isRemoved() && !this.level.isClientSide()) { // CraftBukkit - (this.deathTicks == 20) -> (this.deathTicks >= 20 && !this.dead)
this.level.broadcastEntityEvent(this, (byte) 60);
this.remove(Entity.RemovalReason.KILLED);
}
@@ -655,9 +701,15 @@
}