From 5e0998c0b1803417f2bc6ec760cd9bec0b27eaf2 Mon Sep 17 00:00:00 2001 From: StavWasPlayZ Date: Sun, 30 Jul 2023 16:18:11 +0300 Subject: [PATCH] Log suppliers even if not null --- .../gui/screens/instrument/partial/note/NoteButton.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/note/NoteButton.java b/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/note/NoteButton.java index 1657df3..6c3ca0c 100644 --- a/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/note/NoteButton.java +++ b/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/note/NoteButton.java @@ -93,13 +93,13 @@ public Component getMessage() { } catch (NullPointerException e) { GInstrumentMod.LOGGER.error("Empty label recieved during the gathering of a note button's message!"); - if (getLabelSupplier() == null) { + if (getLabelSupplier() == null) GInstrumentMod.LOGGER.info("Label supplier itself is null!"); - GInstrumentMod.LOGGER.info("Drum label supplier as given in configs: "+ModClientConfigs.DRUM_LABEL_TYPE.get()); - GInstrumentMod.LOGGER.info("Grid label supplier as given in configs: "+ModClientConfigs.GRID_LABEL_TYPE.get()); - } else GInstrumentMod.LOGGER.info("Label supplier result: "+getLabelSupplier().get(this)); + + GInstrumentMod.LOGGER.info("Drum label supplier as given in configs: "+ModClientConfigs.DRUM_LABEL_TYPE.get()); + GInstrumentMod.LOGGER.info("Grid label supplier as given in configs: "+ModClientConfigs.GRID_LABEL_TYPE.get()); GInstrumentMod.LOGGER.info("Note button in question: "+this);