From d267913e206f5f7bfc16607c0dc058290e6b556f Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 13 Nov 2024 13:40:50 +0100 Subject: test: Add sack util test --- src/main/kotlin/util/MC.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/kotlin/util/MC.kt') diff --git a/src/main/kotlin/util/MC.kt b/src/main/kotlin/util/MC.kt index cbcd8ae..3f5d633 100644 --- a/src/main/kotlin/util/MC.kt +++ b/src/main/kotlin/util/MC.kt @@ -102,7 +102,7 @@ object MC { inline val handledScreen: HandledScreen<*>? get() = instance.currentScreen as? HandledScreen<*> inline val window get() = instance.window inline val currentRegistries: RegistryWrapper.WrapperLookup? get() = world?.registryManager - val defaultRegistries: RegistryWrapper.WrapperLookup = BuiltinRegistries.createWrapperLookup() + val defaultRegistries: RegistryWrapper.WrapperLookup by lazy { BuiltinRegistries.createWrapperLookup() } inline val currentOrDefaultRegistries get() = currentRegistries ?: defaultRegistries val defaultItems: RegistryWrapper.Impl = defaultRegistries.getOrThrow(RegistryKeys.ITEM) var lastWorld: World? = null -- cgit