Skip to content

Commit

Permalink
Fix sprint
Browse files Browse the repository at this point in the history
  • Loading branch information
Toshimichi0915 committed Sep 3, 2024
1 parent d743d47 commit 99b85a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ minecraft_version=1.21.1
yarn_mappings=1.21.1+build.3
loader_version=0.16.2
# Mod Properties
mod_version=1.8.6
mod_version=1.8.7
maven_group=net.toshimichi
archives_base_name=thymine
# Dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public class KeyBindingMixin {

@Inject(at = @At("HEAD"), method = "isPressed", cancellable = true)
public void isPressed(CallbackInfoReturnable<Boolean> cir) {
if (ThymineMod.getOptions().toggleSprint && translationKey.equals("key.sprint")) {
cir.setReturnValue(ThymineMod.getOptions().sprint);
if (ThymineMod.getOptions().toggleSprint && ThymineMod.getOptions().sprint && translationKey.equals("key.sprint")) {
cir.setReturnValue(true);
}
}
}

0 comments on commit 99b85a2

Please sign in to comment.