Skip to content

Commit

Permalink
fix: pack.mcmeta issue and filesystems issue
Browse files Browse the repository at this point in the history
  • Loading branch information
IMB11 committed Aug 4, 2024
1 parent b0dcd6a commit 6335840
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.gradle.parallel=false

# Fabric Properties
# check these on https://fabricmc.net/develop
mod.version=1.0.3
mod.version=1.0.4
mod.name=Fog
mod.target=[VERSIONED]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static void tryUnpack() throws IOException, URISyntaxException {
*//*?} elif =1.20.6 {*/
/*int packFormat = 41;
*//*?} else {*/
int packFormat = 48;
int packFormat = 45;
/*?}*/

if (!META_PATH.toFile().exists()) {
Expand Down Expand Up @@ -161,16 +161,6 @@ public static void walkNamespaces() {

@SuppressWarnings("resource")
public static @NotNull PathMatcher getPathMatcher(@NotNull URI uri, @NotNull String pattern) {
FileSystem fs;
try {
fs = FileSystems.newFileSystem(uri, Collections.emptyMap());
} catch (Exception e) {
try {
fs = FileSystems.getFileSystem(uri);
} catch (Exception e2) {
fs = FileSystems.getDefault();
}
}
return fs.getPathMatcher("glob:" + pattern);
return FileSystems.getDefault().getPathMatcher("glob:" + pattern);
}
}

0 comments on commit 6335840

Please sign in to comment.