mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-15 04:30:29 +00:00
Fix incorrect reboot tooltip
This tooltip was a) using the wrong text and b) incorrect anyway! Rebooting an off computer does nothing, rather than turning it on.
This commit is contained in:
parent
4c5b3a6ee5
commit
93f747fb54
@ -16,6 +16,7 @@ import net.minecraft.util.text.TextFormatting;
|
||||
import net.minecraft.util.text.TranslationTextComponent;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.function.BooleanSupplier;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
@ -56,9 +57,8 @@ public final class ComputerSidebar
|
||||
() -> isOn.getAsBoolean() ? Arrays.asList(
|
||||
new TranslationTextComponent( "gui.computercraft.tooltip.turn_off" ),
|
||||
new TranslationTextComponent( "gui.computercraft.tooltip.turn_off.key" ).withStyle( TextFormatting.GRAY )
|
||||
) : Arrays.asList(
|
||||
new TranslationTextComponent( "gui.computercraft.tooltip.turn_on" ),
|
||||
new TranslationTextComponent( "gui.computercraft.tooltip.turn_off.key" ).withStyle( TextFormatting.GRAY )
|
||||
) : Collections.singletonList(
|
||||
new TranslationTextComponent( "gui.computercraft.tooltip.turn_on" )
|
||||
)
|
||||
) );
|
||||
|
||||
|
@ -111,7 +111,6 @@
|
||||
"gui.computercraft.tooltip.computer_id": "Computer ID: %s",
|
||||
"gui.computercraft.tooltip.disk_id": "Disk ID: %s",
|
||||
"gui.computercraft.tooltip.turn_on": "Turn this computer on",
|
||||
"gui.computercraft.tooltip.turn_on.key": "Hold Ctrl+R",
|
||||
"gui.computercraft.tooltip.turn_off": "Turn this computer off",
|
||||
"gui.computercraft.tooltip.turn_off.key": "Hold Ctrl+S",
|
||||
"gui.computercraft.tooltip.terminate": "Stop the currently running code",
|
||||
|
Loading…
Reference in New Issue
Block a user