impove camera entity handling
This commit is contained in:
parent
8a72694a74
commit
3960bff398
4 changed files with 14 additions and 7 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue