stops colour parsing for inputs

This commit is contained in:
rockyhawk64 2025-10-16 21:39:16 +11:00
parent feafa0d5a7
commit fe4ecd2d9f
2 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@ public class InputBuilder {
Player player = builder.getPlayer();
TextDialogInput.Builder inputBuilder = DialogInput
.text(item.getId(), ctx.text.parseTextToComponent(player, item.getName()))
.initial(ctx.text.parseTextToString(player, item.getInitial()))
.initial(ctx.text.applyPlaceholders(player, item.getInitial()))
.width(builder.parseInt(item.getWidth()))
.maxLength(builder.parseInt(item.getMaxLength()));

View File

@ -57,7 +57,8 @@ public class CustomForm {
switch (comp) {
case FloodgateLabel input -> {
form.label(
parseText(input.getName().replaceAll("\\\\n", "\n"))
ctx.text.applyPlaceholders(player,
input.getName().replaceAll("\\\\n", "\n"))
);
inputOrder.add(input);
}