Skip to content

Commit

Permalink
build.2
Browse files Browse the repository at this point in the history
  • Loading branch information
valoeghese committed May 22, 2020
1 parent a2581df commit 72bb160
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mainClassName = 'tk.valoeghese.fc0.client.Main'
sourceCompatibility = JavaVersion.VERSION_1_8

group 'tk.valoeghese'
version '0.1.3'
version '0.1.3+build.2'

repositories {
mavenCentral()
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/tk/valoeghese/fc0/client/Client2fc.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private void updateMovement() {
final float yaw = this.player.getCamera().getYaw();
float slowness = this.player.getHorizontalSlowness();
boolean lr = Keybinds.MOVE_LEFT.isPressed() || Keybinds.MOVE_RIGHT.isPressed();
boolean fb = Keybinds.MOVE_BACKWARDS.isPressed() || Keybinds.MOVE_FOWARDS.isPressed();
boolean fb = Keybinds.MOVE_BACKWARDS.isPressed() || Keybinds.MOVE_FORWARDS.isPressed();

if (Keybinds.RUN.isPressed()) {
slowness /= 1.67;
Expand All @@ -115,7 +115,7 @@ private void updateMovement() {

if (Keybinds.MOVE_BACKWARDS.isPressed()) {
this.player.addVelocity(-sin(yaw) / slowness, 0.0f, cos(yaw) / slowness);
} else if (Keybinds.MOVE_FOWARDS.isPressed()) {
} else if (Keybinds.MOVE_FORWARDS.isPressed()) {
this.player.addVelocity(-sin(yaw - PI) / slowness, 0.0f, cos(yaw - PI) / slowness);
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/tk/valoeghese/fc0/client/Keybinds.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import static org.lwjgl.glfw.GLFW.*;

public final class Keybinds {
public static final Keybind MOVE_FOWARDS = new Keybind("move_fowards", GLFW_KEY_W, false);
public static final Keybind MOVE_FORWARDS = new Keybind("move_forwards", GLFW_KEY_W, false);
public static final Keybind MOVE_BACKWARDS = new Keybind("move_backwards", GLFW_KEY_S, false);
public static final Keybind MOVE_LEFT = new Keybind("move_left", GLFW_KEY_A, false);
public static final Keybind MOVE_RIGHT = new Keybind("move_right", GLFW_KEY_D, false);
Expand Down

0 comments on commit 72bb160

Please sign in to comment.