Skip to content

Commit

Permalink
Log suppliers even if not null
Browse files Browse the repository at this point in the history
  • Loading branch information
StavWasPlayZ committed Jul 30, 2023
1 parent 50db427 commit 5e0998c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5e0998c

Please sign in to comment.