Skip to content

Commit

Permalink
Added horizontal particle speed to Jetpack.
Browse files Browse the repository at this point in the history
  • Loading branch information
coltonk9043 committed Oct 8, 2023
1 parent cb6a102 commit a47e209
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/net/aoba/module/modules/movement/Jetpack.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ public void OnUpdate(TickEvent event) {
float rightThrusterX = (float) Math.sin(Math.toRadians(angle + 270)) * 0.25f;
float rightThrusterZ = (float) Math.cos(Math.toRadians(angle + 270)) * 0.25f;

MC.world.addParticle(ParticleTypes.FLAME, player.getX() + leftThrusterX, player.getY(), player.getZ() + leftThrusterZ, 0, -0.5f, 0);
MC.world.addParticle(ParticleTypes.FLAME, player.getX() + rightThrusterX, player.getY(), player.getZ() + rightThrusterZ, 0, -0.5f, 0);
playerSpeed = playerSpeed.add(0, speed / 20.0f, 0);
MC.world.addParticle(ParticleTypes.FLAME, player.getX() + leftThrusterX, player.getY() + 0.5f, player.getZ() + leftThrusterZ, leftThrusterX, -0.5f, leftThrusterZ);
MC.world.addParticle(ParticleTypes.FLAME, player.getX() + rightThrusterX, player.getY() + 0.5f, player.getZ() + rightThrusterZ, rightThrusterX, -0.5f, rightThrusterZ);
playerSpeed = playerSpeed.add(0, speed / 20.0f, 0);
}
player.setVelocity(playerSpeed);
}
Expand Down

0 comments on commit a47e209

Please sign in to comment.