Skip to content

Commit

Permalink
Suppress error from FileResourcePack if main file doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Mar 31, 2024
1 parent 5826f33 commit 89e0953
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

import javax.annotation.Nullable;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Enumeration;
import java.util.Map;
Expand Down Expand Up @@ -53,6 +54,9 @@ private Set<CachedResourcePath> genCache() {
containedPaths.trim();
return containedPaths;
});
} catch(FileNotFoundException e) {
// Don't bother printing error
return ImmutableSet.of();
} catch(IOException | ExecutionException e) {
VintageFix.LOGGER.error("Exception creating cache", e);
return ImmutableSet.of();
Expand Down

0 comments on commit 89e0953

Please sign in to comment.