Updated gravity methods
This commit is contained in:
parent
72a11226f5
commit
7cc302e7b5
|
@ -131,7 +131,7 @@ public class EntityCockatrice extends EntityMob
|
|||
d2 = d2 * d3;
|
||||
EntityPoisonNeedle entityarrow = new EntityPoisonNeedle(this.worldObj, this);
|
||||
entityarrow.setAim(this, this.rotationPitch, this.rotationYaw, 0.0F, 1.0F, 1.0F);
|
||||
entityarrow.posY = this.posY + 1.25D;
|
||||
entityarrow.posY = this.posY + 1.55D;
|
||||
this.playSound(SoundEvents.ENTITY_SKELETON_SHOOT, 1.0F, 1.2F / (this.rand.nextFloat() * 0.2F + 0.9F));
|
||||
this.worldObj.spawnEntityInWorld(entityarrow);
|
||||
}
|
||||
|
|
|
@ -26,11 +26,6 @@ public abstract class EntityDartBase extends EntityArrow implements IProjectile
|
|||
{
|
||||
super.onUpdate();
|
||||
|
||||
if (!(this instanceof EntityPoisonNeedle))
|
||||
{
|
||||
this.motionY += (double)0.05F;
|
||||
}
|
||||
|
||||
if (this.ticksInAir == 500)
|
||||
{
|
||||
this.setDead();
|
||||
|
@ -40,14 +35,17 @@ public abstract class EntityDartBase extends EntityArrow implements IProjectile
|
|||
{
|
||||
++this.ticksInAir;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public boolean func_189652_ae()
|
||||
|
||||
@Override
|
||||
public boolean hasNoGravity()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public void func_189654_d(boolean flight)
|
||||
@Override
|
||||
public void setNoGravity(boolean flight)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue