Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-20 06:50:09 +01:00
Fixes thrown error when skull skin cache doesnt exist (#4082)
Dieser Commit ist enthalten in:
Ursprung
35a8e1507d
Commit
ec5a20113d
@ -139,6 +139,11 @@ public class SkullResourcePackManager {
|
||||
}
|
||||
|
||||
public static void cleanSkullSkinCache() {
|
||||
// No need to clean up if skin cache does not exist
|
||||
if (!Files.exists(SKULL_SKIN_CACHE_PATH)) {
|
||||
return;
|
||||
}
|
||||
|
||||
try (Stream<Path> stream = Files.list(SKULL_SKIN_CACHE_PATH)) {
|
||||
int removeCount = 0;
|
||||
for (Path path : stream.toList()) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren