Skip to content

Commit

Permalink
feat: better way?
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHsieh0415 committed Sep 27, 2024
1 parent 324f677 commit 849c329
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
public class DumpCommands {
private static final char UNICODE_TICK = '✔';
private static final char UNICODE_CROSS = '✘';
private static final char BRANCH_NAME = "main";

public static int events(CommandSourceStack source) {
var groups = EventGroups.ALL.get().map();
Expand Down Expand Up @@ -78,7 +79,8 @@ public static int events(CommandSourceStack source) {

if (eventType.getPackageName().startsWith("dev.latvian.mods.kubejs")) {
builder.append('[').append(UtilsJS.toMappedTypeString(eventType)).append(']')
.append('(').append("https://github.com/KubeJS-Mods/KubeJS/tree/main/src/main/java/")
.append('(').append("https://github.com/KubeJS-Mods/KubeJS/tree/main/src/")
.append(BRANCH_NAME).append("/java/")
.append(eventType.getPackageName().replace('.', '/'))
.append('/').append(eventType.getSimpleName()).append(".java")
.append(')');
Expand Down

0 comments on commit 849c329

Please sign in to comment.