mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
quick fix : Redundant type cast
This commit is contained in:
1 parent
b34eec4dea
commit
2d13e6185e
84 files changed
+426
-434
No files matched your search
@@ -64,12 +64,12 @@ public class Longsword extends Weapon {
|
||||
|
||||
float speed = 0.05F * time;
|
||||
if (speed > 0.925f) speed = 0.925f;
|
||||
player.motionX = (double) (-MathHelper.sin(player.rotationYaw / 180.0F * (float) Math.PI)
|
||||
player.motionX = -MathHelper.sin(player.rotationYaw / 180.0F * (float) Math.PI)
|
||||
* MathHelper.cos(player.rotationPitch / 180.0F * (float) Math.PI)
|
||||
* speed);
|
||||
player.motionZ = (double) (MathHelper.cos(player.rotationYaw / 180.0F * (float) Math.PI)
|
||||
* speed;
|
||||
player.motionZ = MathHelper.cos(player.rotationYaw / 180.0F * (float) Math.PI)
|
||||
* MathHelper.cos(player.rotationPitch / 180.0F * (float) Math.PI)
|
||||
* speed);
|
||||
* speed;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user