From 6997800d8164ce263777d6ab090fa45a9ec3c46b Mon Sep 17 00:00:00 2001 From: Des Herriott Date: Thu, 7 Nov 2024 09:00:25 +0000 Subject: [PATCH] chore: replaced a couple of deprecated icon usages --- .../ftb/mods/ftblibrary/ui/misc/AbstractThreePanelScreen.java | 2 +- .../dev/ftb/mods/ftblibrary/ui/misc/KeyReferenceScreen.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/dev/ftb/mods/ftblibrary/ui/misc/AbstractThreePanelScreen.java b/common/src/main/java/dev/ftb/mods/ftblibrary/ui/misc/AbstractThreePanelScreen.java index 7c76faa..0770e5a 100644 --- a/common/src/main/java/dev/ftb/mods/ftblibrary/ui/misc/AbstractThreePanelScreen.java +++ b/common/src/main/java/dev/ftb/mods/ftblibrary/ui/misc/AbstractThreePanelScreen.java @@ -145,7 +145,7 @@ public TopPanel() { super(AbstractThreePanelScreen.this); closeButton = new SimpleButton(this, Component.translatable("gui.close"), - Icons.CLOSE, (btn, mb) -> doCancel()); + Icons.CANCEL, (btn, mb) -> doCancel()); } @Override diff --git a/common/src/main/java/dev/ftb/mods/ftblibrary/ui/misc/KeyReferenceScreen.java b/common/src/main/java/dev/ftb/mods/ftblibrary/ui/misc/KeyReferenceScreen.java index a4d8f90..0b61772 100644 --- a/common/src/main/java/dev/ftb/mods/ftblibrary/ui/misc/KeyReferenceScreen.java +++ b/common/src/main/java/dev/ftb/mods/ftblibrary/ui/misc/KeyReferenceScreen.java @@ -27,7 +27,7 @@ public KeyReferenceScreen(String... translationKeys) { textPanel = new TextPanel(this); - closeButton = new SimpleTextButton(this, Component.translatable("gui.close"), Icons.CLOSE) { + closeButton = new SimpleTextButton(this, Component.translatable("gui.close"), Icons.CANCEL) { @Override public void onClicked(MouseButton button) { onBack();