From 6927a5edec260234f4c2224d01cd11fd0783fef9 Mon Sep 17 00:00:00 2001 From: Nico Mexis Date: Wed, 11 Sep 2024 07:34:21 +0200 Subject: [PATCH] Fix crash when hovering over some items --- .../architectury/registry/registries/DeferredRegister.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/src/main/java/dev/architectury/registry/registries/DeferredRegister.java b/common/src/main/java/dev/architectury/registry/registries/DeferredRegister.java index 8c4f18b3..bdab2be0 100644 --- a/common/src/main/java/dev/architectury/registry/registries/DeferredRegister.java +++ b/common/src/main/java/dev/architectury/registry/registries/DeferredRegister.java @@ -121,6 +121,11 @@ public Registrar getRegistrar() { return (Registrar) DeferredRegister.this.getRegistrar(); } + @Override + public ResourceKey getKey() { + return ResourceKey.create(getRegistryKey(), getId()); + } + @Override public ResourceLocation getRegistryId() { return key.location();