Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Conversation

@VipCoder8
Copy link

  • Fixed player inventory keybind issues if sprint set to toggle.
  • Backported the excluding undead horses for swimming feature.
  • Merged GirlInPurple's changes as they were not present in this branch.

- Fixed player inventory keybind issues if sprint set to toggle
- Backported the excluding undead horses for swimming feature
- Merged GirlInPurple's changes as they were not present in this branch.
- Fixed player inventory keybind issues if sprint set to toggle
- Backported the excluding undead horses for swimming feature
- Merged GirlInPurple's changes as they were not present in this branch.
Copy link
Owner

@CodeF53 CodeF53 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also update and run the github workflow so I can test the the compiled binary

build.gradle Outdated
//modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modIncludeImplementation(fabricApi.module("fabric-api-base", project.fabric_version))
modIncludeImplementation(fabricApi.module("fabric-rendering-data-attachment-v1", project.fabric_version))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are depending on the entire fabric api, you should get rid of its submodules

assert this.player != null;
if (MinecraftClient.getInstance().options.sprintKey.isPressed()) {
boolean leftControl = GLFW.glfwGetKey(MinecraftClient.getInstance().getWindow().getHandle(), GLFW.GLFW_KEY_LEFT_CONTROL) == 1;
boolean rightControl = GLFW.glfwGetKey(MinecraftClient.getInstance().getWindow().getHandle(), GLFW.GLFW_KEY_RIGHT_CONTROL) == 1;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You aren't using the keybind you made for this in client init?

Also hard coding to ctrl is horrid because 70% of mc playerbase rebinds crouch to ctrl (which dismounts the horse)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was told by Fyoncle(who asked me to fix the issue) that the player's inventory should be opened by holding control and pressing E, if a horse is mounted(default key combination), while users can rebind a key without the need of using specific combination.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This entire file isn't necessary, just use the exact keybind code found in main or girlinpurples pr

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on my first reply it is necessary.

- Fixed player inventory keybind issues if sprint set to toggle
- Backported the excluding undead horses for swimming feature
- Merged GirlInPurple's changes as they were not present in this branch.
Remove accidentally added unused import.
Copy link
Owner

@CodeF53 CodeF53 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still needs an updated workflow file but otherwise lgtm

@CodeF53
Copy link
Owner

CodeF53 commented Mar 19, 2025

wait the flow was updated, then why did the build fail

@CodeF53 CodeF53 merged commit f119a97 into CodeF53:1.20.1 Mar 25, 2025
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants