Fix nested LangBuilder in LangBuilder.forGoggles not inheriting parent namespace

This commit is contained in:
Zangdorx 2024-10-23 16:41:26 -04:00 committed by GitHub
parent 1935b790dd
commit 0b7f103648
Failed to generate hash of commit

View file

@ -165,7 +165,7 @@ public class LangBuilder {
} }
public void forGoggles(List<? super MutableComponent> tooltip, int indents) { public void forGoggles(List<? super MutableComponent> tooltip, int indents) {
tooltip.add(Lang.builder() tooltip.add(Lang.builder(namespace)
.text(Strings.repeat(' ', getIndents(Minecraft.getInstance().font, 4 + indents))) .text(Strings.repeat(' ', getIndents(Minecraft.getInstance().font, 4 + indents)))
.add(this) .add(this)
.component()); .component());