Skip to content

Commit

Permalink
fix screen after leaving team doesn't close
Browse files Browse the repository at this point in the history
closes #9
  • Loading branch information
MelanX committed Jul 1, 2024
1 parent 96d8dad commit b031d96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public void onPress() {
@Override
public void onLoadingResult(LoadingResult result) {
Minecraft minecraft = Minecraft.getInstance();
minecraft.pushGuiLayer(new InformationScreen(result.reason(), TextHelper.stringLength(result.reason()) + 30, 100, minecraft::popGuiLayer));
minecraft.pushGuiLayer(new InformationScreen(result.reason(), TextHelper.stringLength(result.reason()) + 30, 100, () -> minecraft.setScreen(null)));
}

@Override
Expand Down

0 comments on commit b031d96

Please sign in to comment.