Fix recipe names in packaged jars. Closes #4039

This commit is contained in:
LexManos 2017-06-21 01:46:52 -07:00
parent a30316e6a1
commit f1881453be

View file

@ -677,7 +677,7 @@ public class CraftingHelper {
try
{
fs = FileSystems.newFileSystem(source.toPath(), null);
root = fs.getPath("/assets/" + ctx.getModId() + "/recipes/");
root = fs.getPath("/assets/" + ctx.getModId() + "/recipes");
}
catch (IOException e)
{
@ -687,7 +687,7 @@ public class CraftingHelper {
}
else if (source.isDirectory())
{
root = source.toPath().resolve("assets/" + ctx.getModId() + "/recipes/");
root = source.toPath().resolve("assets/" + ctx.getModId() + "/recipes");
}
if (root == null || !Files.exists(root))