Skip to content

Commit 0b73924

Browse files
committed
Add information about recipe locking to Overdrive module tooltip
1 parent 931c06b commit 0b73924

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/generated/resources/assets/modern_industrialization/lang/en_us.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,8 @@
16501650
"text.modern_industrialization.OreGenerationTooltipY": "Y level %d to %d",
16511651
"text.modern_industrialization.OreNotGenerated": "Not Generated but can be obtained with the Quarry",
16521652
"text.modern_industrialization.OverclockMachine": "Use %s to %fx this machine speed for %d ticks",
1653-
"text.modern_industrialization.OverdriveModuleDescription": "Prevents electric machine efficiency from going down, at the cost of electricity.",
1653+
"text.modern_industrialization.OverdriveModuleDescription1": "Prevents electric machine efficiency from going down, at the cost of electricity.",
1654+
"text.modern_industrialization.OverdriveModuleDescription2": "The recipe will be locked until the module is removed or the machine runs out of power.",
16541655
"text.modern_industrialization.PipeConnectionHelp": "Click/Shift-Click to change",
16551656
"text.modern_industrialization.PipeConnectionIO": "I/O",
16561657
"text.modern_industrialization.PipeConnectionIn": "IN",

src/main/java/aztech/modern_industrialization/MIText.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ public enum MIText {
195195
OreGenerationTooltipY("Y level %d to %d"),
196196
OreNotGenerated("Not Generated but can be obtained with the Quarry"),
197197
OverclockMachine("Use %s to %fx this machine speed for %d ticks"),
198-
OverdriveModuleDescription("Prevents electric machine efficiency from going down, at the cost of electricity."),
198+
OverdriveModuleDescription1("Prevents electric machine efficiency from going down, at the cost of electricity."),
199+
OverdriveModuleDescription2("The recipe will be locked until the module is removed or the machine runs out of power."),
199200
PipeConnectionHelp("Click/Shift-Click to change"),
200201
PipeConnectionIO("I/O"),
201202
PipeConnectionIn("IN"),

src/main/java/aztech/modern_industrialization/MITooltips.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,8 @@ public Component parse(Double ratio) {
336336
}
337337
});
338338

339-
public static final TooltipAttachment OVERDRIVE_MODULE = TooltipAttachment.of(MIItem.OVERDRIVE_MODULE, MIText.OverdriveModuleDescription);
339+
public static final TooltipAttachment OVERDRIVE_MODULE = TooltipAttachment.ofMultilines(MIItem.OVERDRIVE_MODULE,
340+
MIText.OverdriveModuleDescription1, MIText.OverdriveModuleDescription2);
340341

341342
public static final TooltipAttachment SPEED_UPGRADES = TooltipAttachment.ofMultilines(
342343
(itemStack, item) -> {

0 commit comments

Comments
 (0)