aboutsummaryrefslogtreecommitdiff
path: root/versions/src/main/kotlin/cc
diff options
context:
space:
mode:
Diffstat (limited to 'versions/src/main/kotlin/cc')
-rw-r--r--versions/src/main/kotlin/cc/polyfrost/oneconfig/utils/KotlinLanguageAdapter.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/versions/src/main/kotlin/cc/polyfrost/oneconfig/utils/KotlinLanguageAdapter.kt b/versions/src/main/kotlin/cc/polyfrost/oneconfig/utils/KotlinLanguageAdapter.kt
index f520f00..2e29303 100644
--- a/versions/src/main/kotlin/cc/polyfrost/oneconfig/utils/KotlinLanguageAdapter.kt
+++ b/versions/src/main/kotlin/cc/polyfrost/oneconfig/utils/KotlinLanguageAdapter.kt
@@ -19,10 +19,10 @@ class KotlinLanguageAdapter : ILanguageAdapter {
override fun supportsStatics(): Boolean = false
override fun getNewInstance(
- container: FMLModContainer, objectClass: Class<*>, classLoader: ClassLoader, factoryMarkedAnnotation: Method
+ container: FMLModContainer?, objectClass: Class<*>, classLoader: ClassLoader?, factoryMarkedAnnotation: Method?
): Any = objectClass.kotlin.objectInstance ?: objectClass.getDeclaredConstructor().newInstance()
- override fun setProxy(target: Field, proxyTarget: Class<*>, proxy: Any) {
+ override fun setProxy(target: Field, proxyTarget: Class<*>, proxy: Any?) {
target.set(proxyTarget.kotlin.objectInstance, proxy)
}
@@ -30,4 +30,4 @@ class KotlinLanguageAdapter : ILanguageAdapter {
}
}
-//#endif \ No newline at end of file
+//#endif