fix: fix unable to bootstrap registry warning
This commit is contained in:
parent
fa1aefe425
commit
2c95dfa660
@ -39,7 +39,7 @@ data class ProjectionEffectType<T : ProjectionEffect>(val constructor: () -> T)
|
|||||||
|
|
||||||
val registryKey: ResourceKey<Registry<ProjectionEffectType<*>>> =
|
val registryKey: ResourceKey<Registry<ProjectionEffectType<*>>> =
|
||||||
ResourceKey.createRegistryKey(Quaedam.resource("projection_effect"))
|
ResourceKey.createRegistryKey(Quaedam.resource("projection_effect"))
|
||||||
val registry: Registry<ProjectionEffectType<*>> = BuiltInRegistries.registerSimple(registryKey) { null }
|
val registry: Registry<ProjectionEffectType<*>> = BuiltInRegistries.registerSimple(registryKey) { nopEffect }
|
||||||
|
|
||||||
val nopEffect: ProjectionEffectType<NopEffect> =
|
val nopEffect: ProjectionEffectType<NopEffect> =
|
||||||
Registry.register(registry, Quaedam.resource("nop"), ProjectionEffectType { NopEffect })
|
Registry.register(registry, Quaedam.resource("nop"), ProjectionEffectType { NopEffect })
|
||||||
|
Loading…
Reference in New Issue
Block a user