Fix creating language file on first startup

This commit is contained in:
Michael Smith 2019-09-13 03:24:59 -07:00
parent 8b6b6d3aa1
commit b5072ca886
No known key found for this signature in database
GPG Key ID: 41F47A53EDE95BE1

View File

@ -138,9 +138,11 @@ public class LangLoader {
}
bw.newLine();
// Output any custom language strings the user had
for (String key : curLang.keySet()) {
bw.write(key + "=" + curLang.get(key));
bw.newLine();
if(curLang != null) {
for (String key : curLang.keySet()) {
bw.write(key + "=" + curLang.get(key));
bw.newLine();
}
}
bw.close();