Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EnderKill98 committed Jan 7, 2023
1 parent 27b30a7 commit def2011
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.Optional;

import com.aizistral.nochatreports.common.config.NCRConfig;
import com.aizistral.nochatreports.common.encryption.AESEncryptor;
import com.aizistral.nochatreports.common.encryption.Encryptor;

import net.minecraft.network.chat.Component;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

import java.util.Objects;

import org.spongepowered.asm.mixin.Shadow;

import com.aizistral.nochatreports.common.config.NCRConfig;
import com.aizistral.nochatreports.common.config.NCRConfigEncryption;
import com.aizistral.nochatreports.common.encryption.Encryption;
import java.util.ArrayList;
import java.util.List;

import org.checkerframework.checker.units.qual.A;

import com.mojang.blaze3d.platform.InputConstants;
import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.blaze3d.vertex.PoseStack;
Expand Down Expand Up @@ -192,9 +192,9 @@ public void updateUsedKeyIndexButton() {
}).withValues(indicesForLength(keyCount))
.displayOnlyValue()
.withInitialValue(initialValue)
.withTooltip(value -> this.minecraft.font.split(
Component.literal("You can have multiple keys separated by commas. This index specifies, which key is use for encrypting messages."), 250))
.create(this.keyField.x + this.keyField.getWidth() - buttonWidth, this.keyField.y + 24, buttonWidth, 20, CommonComponents.EMPTY,
.withTooltip(value -> new AdvancedTooltip(
Component.literal("You can have multiple keys separated by commas. This index specifies, which key is use for encrypting messages.")).setMaxWidth(250))
.create(this.keyField.getX() + this.keyField.getWidth() - buttonWidth, this.keyField.getY() + 24, buttonWidth, 20, CommonComponents.EMPTY,
(cycleButton, value) -> {
this.unfocusFields();
});
Expand Down

0 comments on commit def2011

Please sign in to comment.