We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7c74d6 commit 9546650Copy full SHA for 9546650
kt/godot-library/godot-core-library/src/main/kotlin/godot/runtime/Bootstrap.kt
@@ -13,6 +13,7 @@ import java.util.*
13
14
internal class Bootstrap {
15
private lateinit var serviceLoader: ServiceLoader<Entry>
16
+ private var engineTypeInitialized = false
17
18
19
fun initJar(loader: ClassLoader) {
@@ -70,7 +71,10 @@ internal class Bootstrap {
70
71
with(entry) {
72
if (isMainEntry) {
73
mainContext = context
- context.initEngineTypes()
74
+ if(!engineTypeInitialized) {
75
+ context.initEngineTypes()
76
+ engineTypeInitialized = true
77
+ }
78
registerManagedEngineTypes(
79
TypeManager.engineTypeNames.toTypedArray(),
80
TypeManager.engineSingletonsNames.toTypedArray()
0 commit comments