mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
spotless
This commit is contained in:
1 parent
80d6d2abd8
commit
c4fa3cbbfe
65 files changed
+188
-305
No files matched your search
@@ -358,8 +358,7 @@ public abstract class ProjectileBase extends EntityArrow implements IEntityAddit
|
||||
float f = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ);
|
||||
this.prevRotationYaw =
|
||||
this.rotationYaw = (float) (Math.atan2(this.motionX, this.motionZ) * 180.0D / Math.PI);
|
||||
this.prevRotationPitch =
|
||||
this.rotationPitch = (float) (Math.atan2(this.motionY, f) * 180.0D / Math.PI);
|
||||
this.prevRotationPitch = this.rotationPitch = (float) (Math.atan2(this.motionY, f) * 180.0D / Math.PI);
|
||||
}
|
||||
|
||||
// we previously hit something. Check if the block is still there.
|
||||
@@ -462,8 +461,7 @@ public abstract class ProjectileBase extends EntityArrow implements IEntityAddit
|
||||
if (entity != null) movingobjectposition = new MovingObjectPosition(entity);
|
||||
|
||||
// did we hit a player?
|
||||
if (movingobjectposition != null
|
||||
&& movingobjectposition.entityHit instanceof EntityPlayer) {
|
||||
if (movingobjectposition != null && movingobjectposition.entityHit instanceof EntityPlayer) {
|
||||
EntityPlayer entityplayer = (EntityPlayer) movingobjectposition.entityHit;
|
||||
|
||||
// can we attack said player?
|
||||
|
||||
Reference in new issue
Block a user