diff --git a/src/main/java/eu/midnightdust/yaytris/util/NightJson.java b/src/main/java/eu/midnightdust/yaytris/util/NightJson.java index 95a4a94..ea6c2e7 100644 --- a/src/main/java/eu/midnightdust/yaytris/util/NightJson.java +++ b/src/main/java/eu/midnightdust/yaytris/util/NightJson.java @@ -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(); } } diff --git a/tetris_settings.json5 b/tetris_settings.json5 index 7100a5d..bd52745 100644 --- a/tetris_settings.json5 +++ b/tetris_settings.json5 @@ -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" } \ No newline at end of file