From b031d96adec1d90f02a5354f7e892a44085bbb62 Mon Sep 17 00:00:00 2001 From: MelanX Date: Mon, 1 Jul 2024 15:12:00 +0200 Subject: [PATCH] fix screen after leaving team doesn't close closes #9 --- .../de/melanx/skyguis/client/screen/info/TeamEditScreen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/melanx/skyguis/client/screen/info/TeamEditScreen.java b/src/main/java/de/melanx/skyguis/client/screen/info/TeamEditScreen.java index e88cfe2..8b4f1f6 100644 --- a/src/main/java/de/melanx/skyguis/client/screen/info/TeamEditScreen.java +++ b/src/main/java/de/melanx/skyguis/client/screen/info/TeamEditScreen.java @@ -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