mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fixes thrown error when skull skin cache doesnt exist (#4082)
This commit is contained in:
parent
35a8e1507d
commit
ec5a20113d
1 changed files with 5 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue