Fix player cannot load chunk when login as dead (#661)

This commit is contained in:
IzzelAliz 2022-08-03 13:01:36 +08:00
parent aa3e2a53ee
commit 17b87f828c
No known key found for this signature in database
GPG Key ID: EE50E123A11D8338

View File

@ -202,19 +202,6 @@ public abstract class LivingEntityMixin extends EntityMixin implements LivingEnt
this.entityData.set(DATA_HEALTH_ID, (float) this.getAttributeValue(Attributes.MAX_HEALTH));
}
/**
* @author IzzelAliz
* @reason
*/
@Overwrite
protected void tickDeath() {
++this.deathTime;
if (this.deathTime >= 20 && !this.isRemoved() && !this.level.isClientSide()) {
this.level.broadcastEntityEvent((LivingEntity) (Object) this, (byte) 60);
this.remove(Entity.RemovalReason.KILLED);
}
}
@Redirect(method = "dropAllDeathLoot", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/LivingEntity;dropExperience()V"))
private void arclight$dropLater(LivingEntity livingEntity) {
}