Skip to content

Commit

Permalink
cooler instantfall logger message color
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Mar 15, 2023
1 parent b15d151 commit f63d22f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import carpet.logging.AbstractLogger;
import carpet.utils.Messenger;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.TextFormatting;

public class InstantFallLogger extends AbstractLogger
{
Expand All @@ -21,6 +22,9 @@ public static InstantFallLogger getInstance()

public void onInstantFallFlagFlipped(boolean currentFlag)
{
this.log(() -> new ITextComponent[]{advTr("flag_changed", "InstantFall flag has changed to %s", Messenger.bool(currentFlag))});
this.log(() -> new ITextComponent[]{Messenger.formatting(
advTr("flag_changed", "InstantFall flag changed to %s", Messenger.bool(currentFlag)),
TextFormatting.LIGHT_PURPLE, TextFormatting.ITALIC
)});
}
}
2 changes: 1 addition & 1 deletion src/main/resources/assets/carpet/lang/zh_cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ logger:
.: 可视化投掷物记录器:可视化规则未启用
hint: 点击以启用
instantfall:
flag_changed: 瞬时落沙 flag 已切换为 %s
flag_changed: 瞬时落沙flag已切换为%s

raid_invalidate_reason:
difficulty_peaceful: 难度被设为和平
Expand Down

0 comments on commit f63d22f

Please sign in to comment.