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
1 changed files with 2 additions and 2 deletions

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))