设置靶子消失时间

This commit is contained in:
Atsuihsio 2024-05-26 13:17:49 +08:00
parent 754c3dabee
commit 9e4233fb31
2 changed files with 6 additions and 0 deletions

View file

@ -308,6 +308,9 @@ public class Target1Entity extends PathfinderMob implements GeoEntity, AnimatedE
@Override
protected void tickDeath() {
++this.deathTime;
if (this.deathTime >= 100) {
this.remove(Target1Entity.RemovalReason.KILLED);
}
}
public String getSyncedAnimation() {

View file

@ -211,6 +211,9 @@ public class TargetEntity extends PathfinderMob implements GeoEntity, AnimatedEn
@Override
protected void tickDeath() {
++this.deathTime;
if (this.deathTime >= 20) {
this.remove(Target1Entity.RemovalReason.KILLED);
}
}
@Override