1
0
mirror of https://github.com/Suiranoil/SkinRestorer.git synced 2026-01-16 04:42:12 +00:00

log caught exception when setting skin

This commit is contained in:
2024-06-27 17:41:58 +03:00
parent bdbf3e6748
commit f7bcca2476

View File

@@ -111,7 +111,10 @@ public class SkinRestorer {
return Pair.of(acceptedPlayers, acceptedProfiles); return Pair.of(acceptedPlayers, acceptedProfiles);
}, server) }, server)
.orTimeout(10, TimeUnit.SECONDS) .orTimeout(10, TimeUnit.SECONDS)
.exceptionally(e -> Pair.of(Collections.emptySet(), Collections.emptySet())); .exceptionally(e -> {
SkinRestorer.LOGGER.error(String.valueOf(e));
return Pair.of(Collections.emptySet(), Collections.emptySet());
});
} }
public static void applyRestoredSkin(GameProfile profile, Property skin) { public static void applyRestoredSkin(GameProfile profile, Property skin) {