25 lines
1.2 KiB
Java
25 lines
1.2 KiB
Java
package net.flashii.mcexts.mixin;
|
|
|
|
import com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService;
|
|
import org.spongepowered.asm.mixin.Mixin;
|
|
import org.spongepowered.asm.mixin.injection.At;
|
|
import org.spongepowered.asm.mixin.injection.ModifyVariable;
|
|
|
|
@Mixin(YggdrasilMinecraftSessionService.class)
|
|
public abstract class YggdrasilMinecraftSessionServiceMixin {
|
|
@ModifyVariable(method = "getTextures(Lcom/mojang/authlib/GameProfile;Z)Ljava/util/Map;", at = @At("HEAD"), argsOnly = true, remap = false)
|
|
private boolean interceptGetTexturesRequireSecure(boolean requireSecure) {
|
|
return false;
|
|
}
|
|
|
|
@ModifyVariable(method = "fillProfileProperties(Lcom/mojang/authlib/GameProfile;Z)Lcom/mojang/authlib/GameProfile;", at = @At("HEAD"), argsOnly = true, remap = false)
|
|
private boolean interceptFillProfilePropertiesRequireSecure(boolean requireSecure) {
|
|
return true;
|
|
}
|
|
|
|
@ModifyVariable(method = "fillGameProfile(Lcom/mojang/authlib/GameProfile;Z)Lcom/mojang/authlib/GameProfile;", at = @At("HEAD"), argsOnly = true, remap = false)
|
|
private boolean interceptFillGameProfileRequireSecure(boolean requireSecure) {
|
|
return false;
|
|
}
|
|
}
|