Fix player cannot load chunk when login as dead (#661)
This commit is contained in:
parent
aa3e2a53ee
commit
17b87f828c
@ -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) {
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user