Skip to content

Commit e53bbfd

Browse files
authored
Update JREUtils.java
1 parent 14bb155 commit e53bbfd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,10 @@ 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-
}
296293
try {
294+
if(!resConfFile.exists()) {
295+
resConfFile.createNewFile();
296+
}
297297
writeDNS(ctx, resConfFile);
298298
} catch (IOException e) {
299299
Logger.getInstance().appendToLog("Couldn't write DNS servers! " + e.getMessage());

0 commit comments

Comments
 (0)