Skip to content

Commit

Permalink
portalCache logger better messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Dec 4, 2024
1 parent 1f0ddc9 commit e456f7a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/main/java/carpet/logging/portalCache/PortalCacheLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,12 @@ public void onPortalCacheAdded(World dstWorld, ChunkPos pos, BlockPos target, lo
this.log(() -> new ITextComponent[]{Messenger.c(
Messenger.hover(
Messenger.s("[+] ", TextFormatting.GREEN),
advTr("added_hover", "Now Time: %s\nEntity: %s", nowTime, Messenger.entity(entity))
advTr("added_hover", "Now Time: %s\nEntity: %s (%s)", nowTime, Messenger.entity(entity), Messenger.entityType(entity))
),
Messenger.hover(
Messenger.format("(%s) ", Messenger.dimension(dstWorld)),
advTr("destination_dimension", "Destination dimension: %s", Messenger.dimension(dstWorld))
),
Messenger.format("(%s) ", Messenger.dimension(dstWorld)),
advTr(
"added", "Portal Cache added: %s -> %s",
posRange(dstWorld, pos),
Expand All @@ -94,7 +97,10 @@ public void onPortalCacheDeleted(World dstWorld, ChunkPos pos, BlockPos target,
Messenger.s("[-] ", TextFormatting.RED),
advTr("deleted_hover", "Now Time: %s\nLast Update: %s", nowTime, lastUpdateTime)
),
Messenger.format("(-> %s) ", Messenger.dimension(dstWorld)),
Messenger.hover(
Messenger.format("(%s) ", Messenger.dimension(dstWorld)),
advTr("destination_dimension", "Destination dimension: %s", Messenger.dimension(dstWorld))
),
advTr(
"deleted", "Portal Cache deleted: %s -> %s",
posRange(dstWorld, pos),
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/carpet/lang/zh_cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ logger:
当前时间: %s
上次缓存更新时间: %s
range: '%s中的对应范围:'
destination_dimension: '传送目标维度: %s'

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

0 comments on commit e456f7a

Please sign in to comment.