Skip to content

Commit

Permalink
Fix missing lang
Browse files Browse the repository at this point in the history
  • Loading branch information
WenXin20 committed Mar 5, 2025
1 parent dba2f7f commit eb6019c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public class CheckpointFlagBlock extends BaseEntityBlock implements SimpleWaterl
public static final BooleanProperty CLAIMED = BooleanProperty.create("claimed");
public static final IntegerProperty ROTATION = BlockStateProperties.ROTATION_16;
public static final BooleanProperty WATERLOGGED = BlockStateProperties.WATERLOGGED;
private static final Component UNKNOWN_CONTENTS = Component.translatable("marioverse.container.checkpoint_flag.unknownContents");
private static final Component UNKNOWN_CONTENTS = Component.translatable("container.marioverse.checkpoint_flag.unknownContents");
public static final ResourceLocation CONTENTS = ResourceLocation.withDefaultNamespace("contents");
public static final int MAX = RotationSegment.getMaxSegmentIndex();
private static final int ROTATIONS = MAX + 1;
Expand Down Expand Up @@ -631,12 +631,12 @@ public void appendHoverText(ItemStack stack, Item.TooltipContext tooltipContext,
j++;
if (i <= 4) {
i++;
list.add(Component.translatable("marioverse.container.checkpoint_flag.itemCount", itemstack.getHoverName(), itemstack.getCount()));
list.add(Component.translatable("container.marioverse.checkpoint_flag.itemCount", itemstack.getHoverName(), itemstack.getCount()));
}
}

if (j - i > 0) {
list.add(Component.translatable("marioverse.container.checkpoint_flag.more", j - i).withStyle(ChatFormatting.ITALIC));
list.add(Component.translatable("container.marioverse.checkpoint_flag.more", j - i).withStyle(ChatFormatting.ITALIC));
}
}

Expand Down
8 changes: 6 additions & 2 deletions src/main/resources/assets/marioverse/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@
"attribute.marioverse.generic.height_scale": "Height Scale",
"attribute.marioverse.generic.width_scale": "Width Scale",

"block.marioverse.warp_door": " Warp Door",

"menu.marioverse.checkpoint_flag": "Checkpoint Flag",
"menu.marioverse.goal_pole": "Goal Pole",
"menu.marioverse.warp_pipe": "Warp Pipe",
"menu.marioverse.question_block": "Question Block",

"container.marioverse.checkpoint_flag.itemCount": "%s x%s",
"container.marioverse.checkpoint_flag.more": "and %s more...",
"container.marioverse.checkpoint_flag.unknownContents": "???????",

"block.marioverse.warp_door": " Warp Door",

"block.marioverse.coin": "Coin",
"block.marioverse.star_coin": "Star Coin",

Expand Down

0 comments on commit eb6019c

Please sign in to comment.