Skip to content

Commit ccfa6c1

Browse files
authored
Merge pull request #12 from tangbao/patch-1
Fix automatic Forge 1.17.1 and later config
2 parents e545893 + 1d3e5dd commit ccfa6c1

File tree

1 file changed

+4
-1
lines changed
  • docs/mscs/adjusting-world-server-properties

1 file changed

+4
-1
lines changed

docs/mscs/adjusting-world-server-properties/forge.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ There's an automatic and a manual way to apply the fixes needed for these versio
109109
```bash
110110
sed -i "\|@[^\"]|s|@|@$(pwd)/|" run.sh
111111
sed -i "s|\"\$@|--nogui &|g" run.sh
112+
sed -i "s|libraries|$(pwd)/libraries|g" run.sh
112113
sed -i "s|libraries|$(pwd)/libraries|g" libraries/net/minecraftforge/forge/*/unix_args.txt
113114
```
114115

@@ -120,7 +121,9 @@ sed -i "s|libraries|$(pwd)/libraries|g" libraries/net/minecraftforge/forge/*/uni
120121

121122
<span markdown='span'>`sed -i "s|\"\$@|--nogui &|g" run.sh`: This adds `--nogui ` in front of `"$@`, with `&` being the matched pattern.</span><br>
122123

123-
<span markdown='span'>`sed -i "s|libraries|$(pwd)/libraries|g" libraries/net/minecraftforge/forge/*/unix_args.txt`: This adds the current path to all occurences of the word libraries in the unix_args.txt file. Because the directory contains the forge version (for example `1.17.1-37.1.1`), `*` is used as a wildcard.</span>
124+
<span markdown='span'>`sed -i "s|libraries|$(pwd)/libraries|g" run.sh`: This replaces `@libraries/net/minecraftforge/forge/1.17.1-37.1.1/unix_args.txt` with its full directory path in the `bash.sh` file.</span><br>
125+
126+
<span markdown='span'>`sed -i "s|libraries|$(pwd)/libraries|g" libraries/net/minecraftforge/forge/*/unix_args.txt`: This adds the current path to all occurences of the word libraries in the `unix_args.txt` file. Because the directory contains the forge version (for example `1.17.1-37.1.1`), `*` is used as a wildcard.</span>
124127

125128
</details>
126129
<br>

0 commit comments

Comments
 (0)