impove camera entity handling

This commit is contained in:
Sen 2025-08-07 15:28:07 +02:00
parent 8a72694a74
commit 3960bff398
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
4 changed files with 14 additions and 7 deletions

View file

@ -5,8 +5,8 @@ import common.rng.Random;
import common.world.World;
public class EntityCameraHolder extends EntityNPC {
public EntityCameraHolder(World worldIn) {
super(worldIn);
public EntityCameraHolder(World world) {
super(world);
}
public int getBaseHealth(Random rand) {
@ -41,8 +41,14 @@ public class EntityCameraHolder extends EntityNPC {
protected void damageEntity(DamageSource damageSrc, int damageAmount) {
}
public boolean canNaturallyFly() {
return true;
}
public boolean canNaturallyFly() {
return true;
}
public void onUpdate() {
super.onUpdate();
if(!this.isPlayer())
this.setDead();
}
}