Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenraven committed Feb 17, 2024
1 parent 4a78723 commit c63a8fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class TransformHelper {
static Field classLoaderExceptionsField;
static Field xformerExceptionsField;

@SuppressWarnings("unchecked")
public static byte[] transform(LaunchClassLoader loader, String name, byte[] classBytes) throws Exception {
if (classLoaderExceptionsField == null) {
classLoaderExceptionsField = loader.getClass()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class MixinMinecraftKeyBinding {
@Redirect(
method = "runTick",
at = @At(value = "INVOKE", target = "Lnet/minecraft/client/settings/KeyBinding;setKeyBindState(IZ)V"),
slice = @Slice(from = @At(value = "INVOKE", target = "Lorg/lwjgl/input/Keyboard;next()Z")))
slice = @Slice(from = @At(value = "INVOKE", target = "Lorg/lwjgl/input/Keyboard;next()Z", remap = false)))
private void lwjgl3ify$noKeybindUpdateHere(int eventKey, boolean eventKeyState) {
// Disable, handled in the client proxy
}
Expand Down

0 comments on commit c63a8fa

Please sign in to comment.