Skip to content

Commit

Permalink
Fix input busses saying "Item Auto-Output Enabled" instead of "Item A…
Browse files Browse the repository at this point in the history
…uto-Input Enabled" (GregTechCEu#2489)
  • Loading branch information
Zorbatron authored Jun 4, 2024
1 parent 4d3a39e commit 153ebab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,13 @@ public ModularPanel buildUI(PosGuiData guiData, GuiSyncManager guiSyncManager) {
workingStateValue::setBoolValue))
.overlay(GTGuiTextures.BUTTON_ITEM_OUTPUT)
.tooltipBuilder(t -> t.setAutoUpdate(true)
.addLine(workingStateValue.getBoolValue() ?
IKey.lang("gregtech.gui.item_auto_output.tooltip.enabled") :
IKey.lang("gregtech.gui.item_auto_output.tooltip.disabled"))))
.addLine(isExportHatch ?
(workingStateValue.getBoolValue() ?
IKey.lang("gregtech.gui.item_auto_output.tooltip.enabled") :
IKey.lang("gregtech.gui.item_auto_output.tooltip.disabled")) :
(workingStateValue.getBoolValue() ?
IKey.lang("gregtech.gui.item_auto_input.tooltip.enabled") :
IKey.lang("gregtech.gui.item_auto_input.tooltip.disabled")))))
.child(new ToggleButton()
.top(18)
.value(new BoolValue.Dynamic(collapseStateValue::getBoolValue,
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/assets/gregtech/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -5431,6 +5431,8 @@ gregtech.gui.overclock.off=X
gregtech.gui.sort=Sort
gregtech.gui.fluid_auto_output.tooltip.enabled=Fluid Auto-Output Enabled
gregtech.gui.fluid_auto_output.tooltip.disabled=Fluid Auto-Output Disabled
gregtech.gui.item_auto_input.tooltip.enabled=Item Auto-Input Enabled
gregtech.gui.item_auto_input.tooltip.disabled=Item Auto-Input Disabled
gregtech.gui.item_auto_output.tooltip.enabled=Item Auto-Output Enabled
gregtech.gui.item_auto_output.tooltip.disabled=Item Auto-Output Disabled
gregtech.gui.item_auto_collapse.tooltip.enabled=Item Auto-Collapse Enabled
Expand Down

0 comments on commit 153ebab

Please sign in to comment.