Skip to content

Commit f63d22f

Browse files
committed
cooler instantfall logger message color
1 parent b15d151 commit f63d22f

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/main/java/carpet/logging/instantfall/InstantFallLogger.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import carpet.logging.AbstractLogger;
44
import carpet.utils.Messenger;
55
import net.minecraft.util.text.ITextComponent;
6+
import net.minecraft.util.text.TextFormatting;
67

78
public class InstantFallLogger extends AbstractLogger
89
{
@@ -21,6 +22,9 @@ public static InstantFallLogger getInstance()
2122

2223
public void onInstantFallFlagFlipped(boolean currentFlag)
2324
{
24-
this.log(() -> new ITextComponent[]{advTr("flag_changed", "InstantFall flag has changed to %s", Messenger.bool(currentFlag))});
25+
this.log(() -> new ITextComponent[]{Messenger.formatting(
26+
advTr("flag_changed", "InstantFall flag changed to %s", Messenger.bool(currentFlag)),
27+
TextFormatting.LIGHT_PURPLE, TextFormatting.ITALIC
28+
)});
2529
}
2630
}

src/main/resources/assets/carpet/lang/zh_cn.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ logger:
562562
.: 可视化投掷物记录器:可视化规则未启用
563563
hint: 点击以启用
564564
instantfall:
565-
flag_changed: 瞬时落沙 flag 已切换为 %s
565+
flag_changed: 瞬时落沙flag已切换为%s
566566

567567
raid_invalidate_reason:
568568
difficulty_peaceful: 难度被设为和平

0 commit comments

Comments
 (0)