User: rednesto Date: 04 Feb 24 04:04 Revision: 9e4abcd43e163a80966c5cca7680f00fa75da3ac Summary: Fix Sponge Getter completion on Kotlin TeamCity URL: https://ci.mcdev.io/viewModification.html?tab=vcsModificationFiles&modId=9104&personal=false Index: src/main/kotlin/platform/sponge/reference/SpongeReferenceContributor.kt =================================================================== --- src/main/kotlin/platform/sponge/reference/SpongeReferenceContributor.kt (revision 57dcef7a20c5725ef5bb010fb7ddd68d221ec956) +++ src/main/kotlin/platform/sponge/reference/SpongeReferenceContributor.kt (revision 9e4abcd43e163a80966c5cca7680f00fa75da3ac) @@ -78,7 +78,7 @@ } override fun getVariants(): Array { - val literal = element.toUElementOfType() ?: return ArrayUtil.EMPTY_OBJECT_ARRAY + val literal = element.toUElement() ?: return ArrayUtil.EMPTY_OBJECT_ARRAY val (eventClass, _) = literal.uastEventListener ?: return ArrayUtil.EMPTY_OBJECT_ARRAY val methodByClass = mutableMapOf>()