don t tick dead players that are not in the world currently

This commit is contained in:
FatSaw
2022-07-31 06:13:59 +03:00
parent 233aab099e
commit f220a6a153

View File

@@ -784,7 +784,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
protected void a(double d0, boolean flag, IBlockData iblockdata, BlockPosition blockposition) {}
protected void b(BlockPosition blockposition) {
if (!this.isSpectator()) {
if (valid && (!this.isSpectator() || this.world.isLoaded(new BlockPosition(this)))) { // Dionysus - don't tick dead players that are not in the world currently (pending respawn)
super.b(blockposition);
}