diff options
Diffstat (limited to 'src/main/java/gtPlusPlus/core/entity')
| -rw-r--r-- | src/main/java/gtPlusPlus/core/entity/projectile/EntityToxinball.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/gtPlusPlus/core/entity/projectile/EntityToxinball.java b/src/main/java/gtPlusPlus/core/entity/projectile/EntityToxinball.java index a3b2f6f28b..65e2385003 100644 --- a/src/main/java/gtPlusPlus/core/entity/projectile/EntityToxinball.java +++ b/src/main/java/gtPlusPlus/core/entity/projectile/EntityToxinball.java @@ -170,9 +170,7 @@ public abstract class EntityToxinball extends EntityFireball { this.rotationYaw = (float) (Math.atan2(this.motionZ, this.motionX) * 180.0D / Math.PI) + 90.0F; for (this.rotationPitch = (float) (Math.atan2(f1, this.motionY) * 180.0D / Math.PI) - - 90.0F; this.rotationPitch - this.prevRotationPitch < -180.0F; this.prevRotationPitch -= 360.0F) { - ; - } + - 90.0F; this.rotationPitch - this.prevRotationPitch < -180.0F; this.prevRotationPitch -= 360.0F) {} while (this.rotationPitch - this.prevRotationPitch >= 180.0F) { this.prevRotationPitch += 360.0F; @@ -241,7 +239,7 @@ public abstract class EntityToxinball extends EntityFireball { aTag.setShort("zTile", (short) this.entityZ); aTag.setByte("inTile", (byte) Block.getIdFromBlock(this.block)); aTag.setByte("inGround", (byte) (this.inGround ? 1 : 0)); - aTag.setTag("direction", this.newDoubleNBTList(new double[] { this.motionX, this.motionY, this.motionZ })); + aTag.setTag("direction", this.newDoubleNBTList(this.motionX, this.motionY, this.motionZ)); } /** |
