Skip to content

Commit 9b654b2

Browse files
authored
Update JREUtils.java
1 parent ac719f8 commit 9b654b2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/pojlib/util/JREUtils.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ private static void writeDNS(Context ctx, File out) throws IOException {
290290
*/
291291
public static List<String> getJavaArgs(Context ctx, MinecraftInstances.Instance instance) {
292292
File resConfFile = new File(Constants.USER_HOME + "/hacks/resolv.conf");
293+
if(!resConfFile.exists()) {
294+
resConfFile.createNewFile();
295+
}
293296
try {
294297
writeDNS(ctx, resConfFile);
295298
} catch (IOException e) {

0 commit comments

Comments
 (0)