Fix recipe names in packaged jars. Closes #4039
This commit is contained in:
parent
a30316e6a1
commit
f1881453be
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue