mirror of
https://github.com/Pridecraft-Studios/joy.git
synced 2025-09-08 11:39:06 -04:00
Quick splash util tweak
This commit is contained in:
parent
88b7aa5f7c
commit
9342223e58
@ -61,7 +61,10 @@ public final class SplashUtil {
|
|||||||
|
|
||||||
public static List<String> prepare(ResourceManager manager) {
|
public static List<String> prepare(ResourceManager manager) {
|
||||||
try (final var reader = manager.openAsReader(joySplashes)) {
|
try (final var reader = manager.openAsReader(joySplashes)) {
|
||||||
return Stream.concat(reader.lines(), contributors.stream()).toList();
|
return Stream.concat(
|
||||||
|
reader.lines().map(String::trim).filter(str -> !str.isEmpty()),
|
||||||
|
contributors.stream()
|
||||||
|
).toList();
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
logger.warn("Could not read Joy splashes", ioe);
|
logger.warn("Could not read Joy splashes", ioe);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user