Skip to content

Commit

Permalink
remove cursor locking
Browse files Browse the repository at this point in the history
  • Loading branch information
Innokenty committed Aug 11, 2023
1 parent 16ec441 commit 8912d83
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/io/singularitynet/Client/VereyaModClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,8 @@ private void onKey(long window, int key, int scancode, int action, int modifiers

if (((inputType == InputType.HYBRID_KEYBOARD))) {
if ((action == GLFW.GLFW_PRESS)) {
MinecraftClient.getInstance().mouse.lockCursor();
this.stateMachine.currentMissionBehaviour().commandHandler.setOverriding(false);
} else if ((action == GLFW.GLFW_RELEASE)) {
MinecraftClient.getInstance().mouse.unlockCursor();
this.stateMachine.currentMissionBehaviour().commandHandler.setOverriding(true);
}
}
Expand Down

0 comments on commit 8912d83

Please sign in to comment.