NightJson: remove empty line before comment
This commit is contained in:
@@ -54,6 +54,7 @@ public class NightJson {
|
||||
jsonFile.close();
|
||||
} catch (IOException | IllegalAccessException e) {
|
||||
System.out.println("Oh no! An Error occurred whilst writing the JSON file :(");
|
||||
//noinspection CallToPrintStackTrace
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
@@ -61,7 +62,7 @@ public class NightJson {
|
||||
private void writeElement(FileWriter jsonFile, Object value, Class<?> type, String name, boolean hasNext) throws IOException, IllegalAccessException {
|
||||
jsonFile.write("\t");
|
||||
if (type == Comment.class) {
|
||||
jsonFile.write(String.format("\n\t// %s\n", ((Comment) value).commentString));
|
||||
jsonFile.write(String.format("// %s\n", ((Comment) value).commentString));
|
||||
return;
|
||||
}
|
||||
jsonFile.write(String.format("\"%s\": ", name));
|
||||
@@ -112,6 +113,7 @@ public class NightJson {
|
||||
}
|
||||
} catch (IOException | IllegalAccessException | NoSuchElementException | ClassCastException e) {
|
||||
System.out.println("Oh no! An Error occurred whilst reading the JSON file :(");
|
||||
//noinspection CallToPrintStackTrace
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,20 +1,14 @@
|
||||
{
|
||||
|
||||
// Volume of theme music (0-100)
|
||||
"musicVolume": 100,
|
||||
|
||||
"musicVolume": 30,
|
||||
// Volume of sound effects (0-100)
|
||||
"soundVolume": 100,
|
||||
|
||||
// Amount the user interface should be scaled
|
||||
"guiScale": 4.49,
|
||||
|
||||
"guiScale": 5.7,
|
||||
// Whether speed should scale with level (true/false)
|
||||
"shouldScaleSpeed": true,
|
||||
|
||||
// One of [Noob, Easy, Normal, Hard, Extreme, WTF]
|
||||
"difficulty": "Normal",
|
||||
|
||||
// One of [English, Deutsch]
|
||||
"language": "Deutsch"
|
||||
}
|
||||
Reference in New Issue
Block a user