Skip to content

Commit

Permalink
Nullify old keybind ticking too
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenraven committed May 12, 2024
1 parent a2baf36 commit d239a21
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@ public class MixinMinecraftKeyBinding {
private void lwjgl3ify$noKeybindUpdateHere(int eventKey, boolean eventKeyState) {
// Disable, handled in the client proxy
}

@Redirect(
method = "runTick",
at = @At(value = "INVOKE", target = "Lnet/minecraft/client/settings/KeyBinding;onTick(I)V"),
slice = @Slice(from = @At(value = "INVOKE", target = "Lorg/lwjgl/input/Keyboard;next()Z", remap = false)))
private void lwjgl3ify$noKeybindTickHere(int eventKey) {
// Disable, handled in the client proxy
}
}

0 comments on commit d239a21

Please sign in to comment.