1.12/1.14/1.15: Languages updated. JEI plugin init errors fixed. Code cleanups.

This commit is contained in:
stfwi 2020-01-05 09:30:03 +01:00
parent 163153c99c
commit 11e985b8db
24 changed files with 291 additions and 147 deletions

View file

@ -49,7 +49,7 @@
for(var i in lines) {
if(!lines[i].length) continue;
const kv = lines[i].split("=", 2);
if(kv.length!=2) throw new Error("Invalid line in '"+file_path+"': '"+lines[i]+"'");
if(kv.length!=2) throw new Error("Invalid line " + i + " in '"+file_path+"': '"+lines[i]+"'");
const key = kv[0].trim();
const text = kv[1].trim();
text = text.replace("\\\\n", "\n").replace("\\n", "\n");