Skip to content

Commit

Permalink
Use correct exception to catch and remove log that will definitely sp…
Browse files Browse the repository at this point in the history
…am console
  • Loading branch information
Ale32bit committed Jan 10, 2025
1 parent 3cfeb1b commit 99ccbd0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ public MutableText getNameForPlayer(ServerPlayerEntity player) {
try {
prefix = LuckPermsIntegration.getPrefix(player);
suffix = LuckPermsIntegration.getSuffix(player);
} catch (IllegalArgumentException e) {
Solstice.LOGGER.error("-- IGNORE THIS ERROR --\nLuckPerms gave up on getting user... Falling back to default values", e);
} catch (IllegalStateException e) {
// we do nothing, LP does NOT like fake players
}
if (prefix == null)
prefix = "";
Expand Down

0 comments on commit 99ccbd0

Please sign in to comment.