roof removal: change override.json file extension to .jsonc

JSON itself doesn't natively support true comments (the official way is
to include it as data), which means that every syntax highlighter wants
to scream when it reads the file, despite the fact that GSON ignores
comments perfectly fine. JSONC however supports true comments, and is
supported by all the syntax highlighters we use (GH, IJ), while also
staying as entirely normal JSON otherwise.
This commit is contained in:
Hydrox6
2021-07-14 01:34:40 +01:00
committed by Jordan Atwood
parent acbeb90a38
commit 5370444a36
2 changed files with 1 additions and 1 deletions

View File

@@ -175,7 +175,7 @@ public class RoofRemovalPlugin extends Plugin
private void loadRoofOverrides() throws IOException
{
try (InputStream in = getClass().getResourceAsStream("overrides.json"))
try (InputStream in = getClass().getResourceAsStream("overrides.jsonc"))
{
final InputStreamReader data = new InputStreamReader(in, StandardCharsets.UTF_8);
//CHECKSTYLE:OFF