From 919f9b8eb5c28dcadddcc98e63cf5623577d97fa Mon Sep 17 00:00:00 2001 From: Wanja <105125277+Manchick0@users.noreply.github.com> Date: Sun, 29 Dec 2024 23:40:06 +0100 Subject: [PATCH] Update src/main/java/de/hysky/skyblocker/skyblock/speedPreset/SpeedPresetsScreen.java Co-authored-by: Kevin <92656833+kevinthegreat1@users.noreply.github.com> --- .../skyblocker/skyblock/speedPreset/SpeedPresetsScreen.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/hysky/skyblocker/skyblock/speedPreset/SpeedPresetsScreen.java b/src/main/java/de/hysky/skyblocker/skyblock/speedPreset/SpeedPresetsScreen.java index 688d15a227..622c3d5720 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/speedPreset/SpeedPresetsScreen.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/speedPreset/SpeedPresetsScreen.java @@ -60,8 +60,8 @@ public void render(DrawContext context, int mouseX, int mouseY, float delta) { public void close() { assert this.client != null; if (this.list.hasBeenChanged()) { - client.setScreen(new ConfirmScreen(callback -> { - if (callback) { + client.setScreen(new ConfirmScreen(confirmedAction -> { + if (confirmedAction) { this.client.setScreen(parent); } else { this.client.setScreen(this);