From 2c95dfa66014f1d032dd6851252f22d59ad03793 Mon Sep 17 00:00:00 2001 From: xtex Date: Tue, 1 Aug 2023 17:53:34 +0800 Subject: [PATCH] fix: fix unable to bootstrap registry warning --- common/src/main/kotlin/quaedam/projection/ProjectionEffect.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/quaedam/projection/ProjectionEffect.kt b/common/src/main/kotlin/quaedam/projection/ProjectionEffect.kt index cd03ae9..a6e5bb0 100644 --- a/common/src/main/kotlin/quaedam/projection/ProjectionEffect.kt +++ b/common/src/main/kotlin/quaedam/projection/ProjectionEffect.kt @@ -39,7 +39,7 @@ data class ProjectionEffectType(val constructor: () -> T) val registryKey: ResourceKey>> = ResourceKey.createRegistryKey(Quaedam.resource("projection_effect")) - val registry: Registry> = BuiltInRegistries.registerSimple(registryKey) { null } + val registry: Registry> = BuiltInRegistries.registerSimple(registryKey) { nopEffect } val nopEffect: ProjectionEffectType = Registry.register(registry, Quaedam.resource("nop"), ProjectionEffectType { NopEffect })