设置靶子消失时间
This commit is contained in:
parent
754c3dabee
commit
9e4233fb31
2 changed files with 6 additions and 0 deletions
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue