Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
RTAkland committed May 7, 2024
1 parent f72aa65 commit b03371f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/main/java/cn/rtast/viewdimension/ViewDimension.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ class ViewDimension : ModInitializer {
val dimension = player.world.dimension.effects.path
val oldName = player.name.string
val dimensionText = when (dimension) {
"overworld" -> Text.literal(" <").append(Text.translatable("vdim.overworld")).append(Text.literal(">"))
"overworld" -> Text.literal(" <主世界>")
.styled { it.withColor(Formatting.GREEN).withItalic(true) }
"the_nether" ->Text.literal(" <").append(Text.translatable("vdim.thenether")).append(Text.literal(">"))
"the_nether" ->Text.translatable(" <下界>")
.styled { it.withColor(Formatting.DARK_RED).withItalic(true) }
"the_end" -> Text.literal(" <").append(Text.translatable("vdim.theend")).append(Text.literal(">"))
"the_end" -> Text.translatable(" <末地w56s>")
.styled { it.withColor(Formatting.DARK_PURPLE).withItalic(true) }
else -> Text.literal(" <$dimension>")
else -> Text.literal(" $dimension")
.styled { it.withColor(Formatting.GRAY).withItalic(true) }
}
return Text.literal(oldName).append(dimensionText)
Expand Down
5 changes: 0 additions & 5 deletions src/main/resources/assets/viewdimension/lang/en_us.json

This file was deleted.

5 changes: 0 additions & 5 deletions src/main/resources/assets/viewdimension/lang/zh_cn.json

This file was deleted.

0 comments on commit b03371f

Please sign in to comment.