Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/main/java/ch/njol/skript/doc/JSONGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class JSONGenerator extends DocumentationGenerator {
/**
* The current version of the JSON generator
*/
public static final Version JSON_VERSION = new Version(1, 0);
public static final Version JSON_VERSION = new Version(1, 1);

private static final Gson GSON = new GsonBuilder()
.disableHtmlEscaping()
Expand Down Expand Up @@ -200,6 +200,10 @@ private static JsonArray getEventValues(SkriptEventInfo<?> info) {
}
}

if (eventValues.isEmpty()) {
return null;
}

JsonArray array = new JsonArray();
for (JsonObject eventValue : eventValues) {
array.add(eventValue);
Expand Down