From e60de5a03aad0362fb63ccd12c3e7a47efae1ffb Mon Sep 17 00:00:00 2001 From: xtex Date: Wed, 26 Jul 2023 21:27:24 +0800 Subject: [PATCH] fix: recursion on Quaedam# --- common/src/main/kotlin/quaedam/Quaedam.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/quaedam/Quaedam.kt b/common/src/main/kotlin/quaedam/Quaedam.kt index 5c34e17..e387f3a 100644 --- a/common/src/main/kotlin/quaedam/Quaedam.kt +++ b/common/src/main/kotlin/quaedam/Quaedam.kt @@ -34,7 +34,7 @@ object Quaedam { val memoryTypes = DeferredRegister.create(ID, Registries.MEMORY_MODULE_TYPE)!! val sensors = DeferredRegister.create(ID, Registries.SENSOR_TYPE)!! val soundEvents = DeferredRegister.create(ID, Registries.SOUND_EVENT)!! - val projectionEffects = DeferredRegister.create(ID, ProjectionEffectType.registryKey)!! + val projectionEffects by lazy { DeferredRegister.create(ID, ProjectionEffectType.registryKey)!! } val creativeModeTab: RegistrySupplier = creativeModeTabs.register("quaedam") { CreativeTabRegistry.create(Component.translatable("category.quaedam")) {