Skip to content

Commit

Permalink
Fix builder translation keys not matching the style of vanilla
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxNeedsSnacks committed Feb 3, 2024
1 parent 9c4fb36 commit 3b7d06b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -124,7 +125,7 @@ public void generateLang(Map<String, String> lang) {

public String getBuilderTranslationKey() {
if (translationKey.isEmpty()) {
return getTranslationKeyGroup() + '.' + id.getNamespace() + '.' + id.getPath();
return Util.makeDescriptionId(getTranslationKeyGroup(), id);
}

return translationKey;
Expand Down

0 comments on commit 3b7d06b

Please sign in to comment.