Skip to content

Commit

Permalink
Explicitly add remap=true to fix mixin failing in prod (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
magneticflux- authored Dec 31, 2021
1 parent 12a91fe commit b61045b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ private void onGuiMouseDraggedPre(Screen screen, double mouseX, double mouseY, d
}
}

@SuppressWarnings("UnresolvedMixinReference")
@Redirect(method = {"method_1602", "lambda$onMove$11"}, at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/screens/Screen;mouseDragged(DDIDD)Z"), remap = false)
@SuppressWarnings({"UnresolvedMixinReference", "DefaultAnnotationParam"})
@Redirect(method = {"method_1602", "lambda$onMove$11"}, at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/screens/Screen;mouseDragged(DDIDD)Z", remap = true), remap = false)
private boolean onGuiMouseDraggedPost(Screen screen, double mouseX, double mouseY, int button, double deltaX, double deltaY) {
if (screen.mouseDragged(mouseX, mouseY, button, deltaX, deltaY)) {
return true;
Expand Down

0 comments on commit b61045b

Please sign in to comment.