Skip to content

Commit 7c957ab

Browse files
committed
Bugfix
1 parent dd6244d commit 7c957ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/forge-1.19.4/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)