Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Edivad99 committed Mar 29, 2024
1 parent 7ea503d commit e06dd9f
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 36 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// 1.20.1 2024-03-23T20:42:22.369464 Languages: en_us
a2e26fd2cc0d5cdaf70d3b26c7c13bfca0f8bc7e assets/railcraft/lang/en_us.json
// 1.20.1 2024-03-29T14:35:23.724335 Languages: en_us
a76e8dac24af12c819a4eb4a83f751eee0a55286 assets/railcraft/lang/en_us.json
16 changes: 8 additions & 8 deletions src/generated/resources/assets/railcraft/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -903,14 +903,14 @@
"tips.railcraft.frame": "Use to power track",
"tips.railcraft.fueled_boiler_firebox": "Multi-Block: Variable Size, Bottom Layer",
"tips.railcraft.gated_track": "Track with built-in gate",
"tips.railcraft.googles.aura": "Current Aura:",
"tips.railcraft.googles.aura.shunting": "Shunting",
"tips.railcraft.googles.aura.signalling": "Signalling",
"tips.railcraft.googles.aura.surveying": "Surveying",
"tips.railcraft.googles.aura.tracking": "Tracking",
"tips.railcraft.googles.aura.tuning": "Tuning",
"tips.railcraft.googles.aura.worldspike": "Worldspike",
"tips.railcraft.googles.desc": "Right-click to change aura.",
"tips.railcraft.goggles.aura": "Current Aura:",
"tips.railcraft.goggles.aura.shunting": "Shunting",
"tips.railcraft.goggles.aura.signalling": "Signalling",
"tips.railcraft.goggles.aura.surveying": "Surveying",
"tips.railcraft.goggles.aura.tracking": "Tracking",
"tips.railcraft.goggles.aura.tuning": "Tuning",
"tips.railcraft.goggles.aura.worldspike": "Worldspike",
"tips.railcraft.goggles.desc": "Right-click to change aura.",
"tips.railcraft.high_speed": "High Speed",
"tips.railcraft.high_voltage": "High Voltage",
"tips.railcraft.high_voltage_speed": "High Voltage/Speed",
Expand Down
20 changes: 10 additions & 10 deletions src/main/java/mods/railcraft/Translations.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,16 +181,16 @@ public static class Tips {
public static final String SPIKE_MAUL = makeKey("tips", "spike_maul");
public static final String OVERALLS = makeKey("tips", "overalls");
public static final String NONE = makeKey("tips", "none");
public static final String GOOGLES_DESC = makeKey("tips", "googles.desc");
public static final String GOOGLES_AURA = makeKey("tips", "googles.aura");
public static final String GOOGLES_AURA_SHUNTING = makeKey("tips", "googles.aura.shunting");
public static final String GOOGLES_AURA_SIGNALLING =
makeKey("tips", "googles.aura.signalling");
public static final String GOOGLES_AURA_SURVEYING = makeKey("tips", "googles.aura.surveying");
public static final String GOOGLES_AURA_TRACKING = makeKey("tips", "googles.aura.tracking");
public static final String GOOGLES_AURA_TUNING = makeKey("tips", "googles.aura.tuning");
public static final String GOOGLES_AURA_WORLDSPIKE =
makeKey("tips", "googles.aura.worldspike");
public static final String GOGGLES_DESC = makeKey("tips", "goggles.desc");
public static final String GOGGLES_AURA = makeKey("tips", "goggles.aura");
public static final String GOGGLES_AURA_SHUNTING = makeKey("tips", "goggles.aura.shunting");
public static final String GOGGLES_AURA_SIGNALLING =
makeKey("tips", "goggles.aura.signalling");
public static final String GOGGLES_AURA_SURVEYING = makeKey("tips", "goggles.aura.surveying");
public static final String GOGGLES_AURA_TRACKING = makeKey("tips", "goggles.aura.tracking");
public static final String GOGGLES_AURA_TUNING = makeKey("tips", "goggles.aura.tuning");
public static final String GOGGLES_AURA_WORLDSPIKE =
makeKey("tips", "goggles.aura.worldspike");
public static final String CROWBAR_DESC = makeKey("tips", "crowbar.desc");
public static final String CROWBAR_LINK_BROKEN = makeKey("tips", "crowbar.link.broken");
public static final String CROWBAR_LINK_CREATED = makeKey("tips", "crowbar.link.created");
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/mods/railcraft/data/RailcraftLanguageProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -423,14 +423,14 @@ private void tipsTranslations() {
this.add(Translations.Tips.SPIKE_MAUL, "Converts track to switches and junctions.");
this.add(Translations.Tips.OVERALLS, "Protection against the dangers of track-working");
this.add(Translations.Tips.NONE, "None");
this.add(Translations.Tips.GOOGLES_DESC, "Right-click to change aura.");
this.add(Translations.Tips.GOOGLES_AURA, "Current Aura:");
this.add(Translations.Tips.GOOGLES_AURA_SHUNTING, "Shunting");
this.add(Translations.Tips.GOOGLES_AURA_SIGNALLING, "Signalling");
this.add(Translations.Tips.GOOGLES_AURA_SURVEYING, "Surveying");
this.add(Translations.Tips.GOOGLES_AURA_TRACKING, "Tracking");
this.add(Translations.Tips.GOOGLES_AURA_TUNING, "Tuning");
this.add(Translations.Tips.GOOGLES_AURA_WORLDSPIKE, "Worldspike");
this.add(Translations.Tips.GOGGLES_DESC, "Right-click to change aura.");
this.add(Translations.Tips.GOGGLES_AURA, "Current Aura:");
this.add(Translations.Tips.GOGGLES_AURA_SHUNTING, "Shunting");
this.add(Translations.Tips.GOGGLES_AURA_SIGNALLING, "Signalling");
this.add(Translations.Tips.GOGGLES_AURA_SURVEYING, "Surveying");
this.add(Translations.Tips.GOGGLES_AURA_TRACKING, "Tracking");
this.add(Translations.Tips.GOGGLES_AURA_TUNING, "Tuning");
this.add(Translations.Tips.GOGGLES_AURA_WORLDSPIKE, "Worldspike");
this.add(Translations.Tips.CROWBAR_DESC, "Right-click while sneaking to link carts.");
this.add(Translations.Tips.CROWBAR_LINK_BROKEN, "Link Broken");
this.add(Translations.Tips.CROWBAR_LINK_CREATED, "Successfully Linked Carts");
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/mods/railcraft/world/item/GogglesItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static boolean isGoggleAuraActive(Aura aura) {
}

private static Component getDescriptionText(MutableComponent value, boolean tooltip) {
var title = Component.translatable(Translations.Tips.GOOGLES_AURA);
var title = Component.translatable(Translations.Tips.GOGGLES_AURA);
if (tooltip) {
title.withStyle(ChatFormatting.GRAY);
}
Expand All @@ -82,20 +82,20 @@ public InteractionResultHolder<ItemStack> use(Level level, Player player, Intera
public void appendHoverText(ItemStack itemStack, @Nullable Level level,
List<Component> lines, TooltipFlag adv) {
lines.add(getDescriptionText(getAura(itemStack).getDisplayName(), true));
lines.add(Component.translatable(Translations.Tips.GOOGLES_DESC)
lines.add(Component.translatable(Translations.Tips.GOGGLES_DESC)
.withStyle(ChatFormatting.GRAY));
}

public enum Aura {
// TODO: 1.20.4+ use CODECS

NONE(Translations.Tips.NONE),
TRACKING(Translations.Tips.GOOGLES_AURA_TRACKING),
TUNING(Translations.Tips.GOOGLES_AURA_TUNING),
SHUNTING(Translations.Tips.GOOGLES_AURA_SHUNTING),
SIGNALLING(Translations.Tips.GOOGLES_AURA_SIGNALLING),
SURVEYING(Translations.Tips.GOOGLES_AURA_SURVEYING),
WORLDSPIKE(Translations.Tips.GOOGLES_AURA_WORLDSPIKE);
TRACKING(Translations.Tips.GOGGLES_AURA_TRACKING),
TUNING(Translations.Tips.GOGGLES_AURA_TUNING),
SHUNTING(Translations.Tips.GOGGLES_AURA_SHUNTING),
SIGNALLING(Translations.Tips.GOGGLES_AURA_SIGNALLING),
SURVEYING(Translations.Tips.GOGGLES_AURA_SURVEYING),
WORLDSPIKE(Translations.Tips.GOGGLES_AURA_WORLDSPIKE);

private final String translationKey;

Expand Down

0 comments on commit e06dd9f

Please sign in to comment.