mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-07 07:50:27 +00:00
Merge pull request #1414 from Erb3/mc-1.19.x
Fix on/off translation being inverted
This commit is contained in:
commit
a0efe637d6
@ -45,11 +45,11 @@ public final class ComputerSidebar {
|
|||||||
x += CORNERS_BORDER + 1;
|
x += CORNERS_BORDER + 1;
|
||||||
y += CORNERS_BORDER + ICON_MARGIN;
|
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"),
|
||||||
Component.translatable("gui.computercraft.tooltip.turn_off.key")
|
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(
|
add.accept(new DynamicImageButton(
|
||||||
x, y, ICON_WIDTH, ICON_HEIGHT, () -> isOn.getAsBoolean() ? 15 : 1, 1, ICON_TEX_Y_DIFF,
|
x, y, ICON_WIDTH, ICON_HEIGHT, () -> isOn.getAsBoolean() ? 15 : 1, 1, ICON_TEX_Y_DIFF,
|
||||||
TEXTURE, TEX_SIZE, TEX_SIZE, b -> toggleComputer(isOn, input),
|
TEXTURE, TEX_SIZE, TEX_SIZE, b -> toggleComputer(isOn, input),
|
||||||
|
Loading…
Reference in New Issue
Block a user