From 3b7d06b2cbc8cad1d1d094fd8b42da37154c8241 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 4 Feb 2024 00:21:55 +0100 Subject: [PATCH] Fix builder translation keys not matching the style of vanilla --- .../java/dev/latvian/mods/kubejs/registry/BuilderBase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/dev/latvian/mods/kubejs/registry/BuilderBase.java b/common/src/main/java/dev/latvian/mods/kubejs/registry/BuilderBase.java index cc6268f36..08a21be32 100644 --- a/common/src/main/java/dev/latvian/mods/kubejs/registry/BuilderBase.java +++ b/common/src/main/java/dev/latvian/mods/kubejs/registry/BuilderBase.java @@ -5,6 +5,7 @@ import dev.latvian.mods.kubejs.generator.DataJsonGenerator; import dev.latvian.mods.kubejs.typings.Info; import dev.latvian.mods.kubejs.util.UtilsJS; +import net.minecraft.Util; import net.minecraft.network.chat.Component; import net.minecraft.resources.ResourceLocation; import net.minecraft.server.packs.PackType; @@ -124,7 +125,7 @@ public void generateLang(Map lang) { public String getBuilderTranslationKey() { if (translationKey.isEmpty()) { - return getTranslationKeyGroup() + '.' + id.getNamespace() + '.' + id.getPath(); + return Util.makeDescriptionId(getTranslationKeyGroup(), id); } return translationKey;