Skip to content

Commit

Permalink
Fix #833: Add tooltip to P2P tunnel (#873)
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n authored Sep 9, 2024
1 parent 552fbfb commit 45e7a30
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1691,6 +1691,7 @@
"text.modern_industrialization.SteamDrillProfit": "- Press %s to toggle 3x3 mining.",
"text.modern_industrialization.SteamDrillToggle": "- Toggle Silk Touch with %s + %s.",
"text.modern_industrialization.SteamDrillWaterHelp": "- Press %s on still or flowing water to fill.",
"text.modern_industrialization.SuperconductorPowerOnly": "Can only connect to Superconductor cables and machines. Must be directly connected to a machine on at least one end of the tunnel.",
"text.modern_industrialization.Temperature": "Temperature: %d °C",
"text.modern_industrialization.TemperatureMode": "Temperature",
"text.modern_industrialization.ThermalEfficiency": "Thermal Efficiency %s %%",
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/aztech/modern_industrialization/MIText.java
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ public enum MIText {
SteamDrillProfit("- Press %s to toggle 3x3 mining."),
SteamDrillToggle("- Toggle Silk Touch with %s + %s."),
SteamDrillWaterHelp("- Press %s on still or flowing water to fill."),
SuperconductorPowerOnly(
"Can only connect to Superconductor cables and machines. Must be directly connected to a machine on at least one end of the tunnel."),
Temperature("Temperature: %d °C"),
TemperatureMode("Temperature"),
ThermalEfficiency("Thermal Efficiency %s %%"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public static void init(IEventBus modBus) {

public static void commonSetup(FMLCommonSetupEvent event) {
P2PTunnelAttunement.registerAttunementTag(ENERGY_P2P_TUNNEL);

MITooltips.TooltipAttachment.of(ENERGY_P2P_TUNNEL, MIText.SuperconductorPowerOnly);
}

public static void registerPartCapabilities(RegisterPartCapabilitiesEvent event) {
Expand Down

0 comments on commit 45e7a30

Please sign in to comment.