Skip to content

Commit

Permalink
Merge pull request #906 from EvanHsieh0415/fix/kubejs-export-events-m…
Browse files Browse the repository at this point in the history
…d-url

fix: `kubejs export events` markdown url
  • Loading branch information
LatvianModder authored Oct 21, 2024
2 parents ea692f2 + b09d894 commit 0010d8e
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.google.common.base.Strings;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import dev.latvian.mods.kubejs.KubeJS;
import dev.latvian.mods.kubejs.KubeJSPaths;
import dev.latvian.mods.kubejs.event.EventGroups;
import dev.latvian.mods.kubejs.script.ConsoleJS;
Expand Down Expand Up @@ -79,9 +78,7 @@ 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/")
.append(KubeJS.MC_VERSION_NUMBER)
.append("/common/src/main/java/")
.append('(').append("https://github.com/KubeJS-Mods/KubeJS/tree/main/src/main/java/")
.append(eventType.getPackageName().replace('.', '/'))
.append('/').append(eventType.getSimpleName()).append(".java")
.append(')');
Expand Down

0 comments on commit 0010d8e

Please sign in to comment.