From f099b21f6f02473b68889a97d298e7522ef03410 Mon Sep 17 00:00:00 2001 From: Erlend <49862976+Erb3@users.noreply.github.com> Date: Sat, 15 Apr 2023 16:21:53 +0200 Subject: [PATCH] fix: on/off translation inverted --- .../computercraft/client/gui/widgets/ComputerSidebar.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/common/src/client/java/dan200/computercraft/client/gui/widgets/ComputerSidebar.java b/projects/common/src/client/java/dan200/computercraft/client/gui/widgets/ComputerSidebar.java index af685c96f..24ed53d95 100644 --- a/projects/common/src/client/java/dan200/computercraft/client/gui/widgets/ComputerSidebar.java +++ b/projects/common/src/client/java/dan200/computercraft/client/gui/widgets/ComputerSidebar.java @@ -45,11 +45,11 @@ public final class ComputerSidebar { x += CORNERS_BORDER + 1; y += CORNERS_BORDER + ICON_MARGIN; - var turnOn = new HintedMessage( + var turnOn = new HintedMessage(Component.translatable("gui.computercraft.tooltip.turn_on"), (Component) null); + var turnOff = new HintedMessage( Component.translatable("gui.computercraft.tooltip.turn_off"), Component.translatable("gui.computercraft.tooltip.turn_off.key") ); - var turnOff = new HintedMessage(Component.translatable("gui.computercraft.tooltip.turn_on"), (Component) null); add.accept(new DynamicImageButton( x, y, ICON_WIDTH, ICON_HEIGHT, () -> isOn.getAsBoolean() ? 15 : 1, 1, ICON_TEX_Y_DIFF, TEXTURE, TEX_SIZE, TEX_SIZE, b -> toggleComputer(isOn, input),