[devutil] Don't get key pairs
This commit is contained in:
parent
9afea4f5f3
commit
d0d3734c70
@ -0,0 +1,19 @@
|
|||||||
|
package io.gitlab.jfronny.libjf.devutil.mixin;
|
||||||
|
|
||||||
|
import com.mojang.authlib.minecraft.UserApiService;
|
||||||
|
import net.minecraft.client.util.ProfileKeys;
|
||||||
|
import net.minecraft.network.encryption.PlayerKeyPair;
|
||||||
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
|
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||||
|
|
||||||
|
import java.util.Optional;
|
||||||
|
import java.util.concurrent.CompletableFuture;
|
||||||
|
|
||||||
|
@Mixin(ProfileKeys.class)
|
||||||
|
public class ProfileKeysMixin {
|
||||||
|
@Redirect(method = "<init>(Lcom/mojang/authlib/minecraft/UserApiService;Ljava/util/UUID;Ljava/nio/file/Path;)V", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/ProfileKeys;getKeyPair(Lcom/mojang/authlib/minecraft/UserApiService;)Ljava/util/concurrent/CompletableFuture;"))
|
||||||
|
private CompletableFuture<Optional<PlayerKeyPair>> libjf$redirectGetKeyPair(ProfileKeys instance, UserApiService userApiService) {
|
||||||
|
return CompletableFuture.completedFuture(Optional.empty());
|
||||||
|
}
|
||||||
|
}
|
@ -8,7 +8,8 @@
|
|||||||
"CommandManagerMixin"
|
"CommandManagerMixin"
|
||||||
],
|
],
|
||||||
"client": [
|
"client": [
|
||||||
"MinecraftClientMixin"
|
"MinecraftClientMixin",
|
||||||
|
"ProfileKeysMixin"
|
||||||
],
|
],
|
||||||
"injectors": {
|
"injectors": {
|
||||||
"defaultRequire": 1
|
"defaultRequire": 1
|
||||||
|
Loading…
Reference in New Issue
Block a user