Skip to content

Commit

Permalink
Merge pull request #8 from takejohn/patch/#7-element-class-not-found
Browse files Browse the repository at this point in the history
Fix errors caused when executing /gendocs (#7)
  • Loading branch information
eyesniper2 authored Jan 18, 2024
2 parents 1a545ea + 60b81db commit 421f1f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ buildscript {
gradlePluginPortal()
}
dependencies {
classpath 'gradle.plugin.com.github.jengelman.gradle.plugins:shadow:7.0.0'
classpath 'com.github.johnrengelman:shadow:8.1.1'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class GenerateSyntax {

private fun getEntriesFromSkriptElementInfo(info: SyntaxElementInfo<*>, sender: CommandSender?) : Array<DocumentationEntryNode>? {
// See if the class has a SectionValidator and try to pull that out to use as the source of truth.
val elementClass = info.elementClass ?: return null
val elementClass = info.getElementClass() ?: return null
val fields: Array<Field>

try {
Expand Down Expand Up @@ -315,7 +315,7 @@ class GenerateSyntax {

private fun getEntriesFromSkriptEventInfo(info: SkriptEventInfo<*>, sender: CommandSender?) : Array<DocumentationEntryNode>? {
// See if the class has a SectionValidator and try to pull that out to use as the source of truth.
val elementClass = info.elementClass ?: return null;
val elementClass = info.getElementClass() ?: return null;
val fields: Array<Field>

try {
Expand Down

0 comments on commit 421f1f4

Please sign in to comment.