This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Code -
public class EntityRocket extends EntityThrowable { public EntityRocket(World par1World) { super(par1World); } public EntityRocket(World par1World, EntityLivingBase par2EntityLivingBase) { super(par1World, par2EntityLivingBase); } public EntityRocket(World par1World, double par2, double par4, double par6) { super(par1World, par2, par4, par6); } protected void onImpact(MovingObjectPosition par1MovingObjectPosition) { if (par1MovingObjectPosition.entityHit != null) { byte b0 = 30; par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, getThrower()), b0); } if ((!this.worldObj.isRemote) && (RemasterdStarkRulesHandler.obliterate == true)) { float f = 3.0F; this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, f, true); setDead(); } } }
Anyone know what the problem is?
Code -
Anyone know what the problem is?