Skip to content

Commit

Permalink
fixes #1908
Browse files Browse the repository at this point in the history
  • Loading branch information
gnembon committed Sep 25, 2024
1 parent 617e6a9 commit ad86808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/carpet/mixins/MinecraftMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public class MinecraftMixin
{
@Shadow public ClientLevel level;

@Inject(method = "disconnect(Lnet/minecraft/client/gui/screens/Screen;)V", at = @At("HEAD"))
private void onCloseGame(Screen screen, CallbackInfo ci)
@Inject(method = "disconnect(Lnet/minecraft/client/gui/screens/Screen;Z)V", at = @At("HEAD"))
private void onCloseGame(Screen screen, boolean b, CallbackInfo ci)
{
CarpetClient.disconnect();
}
Expand Down

1 comment on commit ad86808

@magicus
Copy link

Choose a reason for hiding this comment

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

Thanks! ❤

Please sign in to comment.