Skip to content

Commit

Permalink
PatcherTool - fix issue when running on Java 11+ (#3705)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee authored Mar 21, 2021
1 parent 10d8aad commit 1bd4beb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/ch/njol/skript/PatcherTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public static void main(String... args) throws IOException, URISyntaxException {
}

// Open jars and patch target
try (FileSystem source = FileSystems.newFileSystem(currentFile, null);
FileSystem target = FileSystems.newFileSystem(patchedFile, null)) {
try (FileSystem source = FileSystems.newFileSystem(currentFile, (ClassLoader) null);
FileSystem target = FileSystems.newFileSystem(patchedFile, (ClassLoader) null)) {
assert source != null;
assert target != null;
new PatcherTool(source, target).patch(options);
Expand Down

0 comments on commit 1bd4beb

Please sign in to comment.