Skip to content

Commit c564cf6

Browse files
committed
Fixes #7
1 parent 08dba0b commit c564cf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/forge-1.20.1/procedures/world_send_chat.java.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
if (world instanceof ServerLevel _level) {
22
_level.getServer().getPlayerList().broadcastSystemMessage(Component.literal(${input$text})
3-
<#if (field$color!"#ffffff")?substring(1) != "ffffff">.withColor(0x${(field$color!"#ffffff")?substring(1)})</#if>
3+
<#if (field$color!"#ffffff")?substring(1) != "ffffff">.withStyle(_s -> _s.withColor(0x${(field$color!"#ffffff")?substring(1)}))</#if>
44
<#if (field$bold!"false")?lower_case == "true">.withStyle(ChatFormatting.BOLD)</#if>
55
<#if (field$italic!"false")?lower_case == "true">.withStyle(ChatFormatting.ITALIC)</#if>
66
<#if (field$underlined!"false")?lower_case == "true">.withStyle(ChatFormatting.UNDERLINE)</#if>

0 commit comments

Comments
 (0)