Fix J13 ambiguous reference and JenkinsFile skipping a step.

This commit is contained in:
LexManos committed 2020-04-04 14:24:44 -07:00
1 parent db6ab2a19e
commit 54f9ca540e
2 files changed
+13 -3

No files matched your search

@@ -654,7 +654,7 @@ public class CraftingHelper {
if (mod.getSource().isFile())
{
fs = FileSystems.newFileSystem(mod.getSource().toPath(), null);
fs = FileSystems.newFileSystem(mod.getSource().toPath(), (ClassLoader)null);
fPath = fs.getPath("/" + base, "_factories.json");
}
else if (mod.getSource().isDirectory())
@@ -791,7 +791,7 @@ public class CraftingHelper {
{
try
{
fs = FileSystems.newFileSystem(source.toPath(), null);
fs = FileSystems.newFileSystem(source.toPath(), (ClassLoader)null);
root = fs.getPath("/" + base);
}
catch (IOException e)
@@ -885,7 +885,7 @@ public class CraftingHelper {
Path fPath = null;
if(mod.getSource().isFile())
{
try(FileSystem fs = FileSystems.newFileSystem(mod.getSource().toPath(), null))
try(FileSystem fs = FileSystems.newFileSystem(mod.getSource().toPath(), (ClassLoader)null))
{
fPath = fs.getPath("assets", path.getResourceDomain(), path.getResourcePath());
}