diff options
| author | Aizistral | 2022-06-20 00:06:32 +0200 |
|---|---|---|
| committer | Aizistral | 2022-06-20 00:06:32 +0200 |
| commit | 4ae9d70b3b63966a0008ee09edde14b72048bb04 (patch) | |
| tree | 7b6f6108b0672214e0e92ea81b5176e2f50d925c /src/main/java | |
| parent | 2d79efdbfbba77e36e0c300763f48a5b19d17952 (diff) | |
Don't send public key to the server
Diffstat (limited to 'src/main/java')
| -rw-r--r-- | src/main/java/com/aizistral/nochatreports/mixins/MixinProfileKeyPairManager.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/main/java/com/aizistral/nochatreports/mixins/MixinProfileKeyPairManager.java b/src/main/java/com/aizistral/nochatreports/mixins/MixinProfileKeyPairManager.java new file mode 100644 index 0000000..2ddf8e9 --- /dev/null +++ b/src/main/java/com/aizistral/nochatreports/mixins/MixinProfileKeyPairManager.java @@ -0,0 +1,34 @@ +package com.aizistral.nochatreports.mixins; + +import java.util.Optional; + +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.Overwrite; + +import net.minecraft.client.multiplayer.ProfileKeyPairManager; +import net.minecraft.world.entity.player.ProfilePublicKey; + +@Mixin(ProfileKeyPairManager.class) +public class MixinProfileKeyPairManager { + + /** + * @reason We don't have to send our keys anywhere, and thus we won't. + * @author Aizistral + */ + + @Overwrite + public Optional<ProfilePublicKey> profilePublicKey() { + return Optional.empty(); + } + + /** + * @reason We don't have to send our keys anywhere, and thus we won't. + * @author Aizistral + */ + + @Overwrite + public Optional<ProfilePublicKey.Data> profilePublicKeyData() { + return Optional.empty(); + } + +} |
