Fixed bedrock login not working

This commit is contained in:
FlorianMichael 2024-02-21 20:27:25 +01:00
parent 5c061e503d
commit f61cb8b8f6
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -32,8 +32,8 @@ import org.spongepowered.asm.mixin.injection.Redirect;
@Mixin(value = DefaultJwtParserBuilder.class, remap = false)
public abstract class MixinDefaultJwtParserBuilder {
@Redirect(method = "build()Lio/jsonwebtoken/JwtParser;", at = @At(value = "INVOKE", target = "Lio/jsonwebtoken/impl/lang/Services;loadFirst(Ljava/lang/Class;)Ljava/lang/Object;"))
public Object removeServicesSupport(Class<Object> result) {
@Redirect(method = "build()Lio/jsonwebtoken/JwtParser;", at = @At(value = "INVOKE", target = "Lio/jsonwebtoken/impl/lang/Services;get(Ljava/lang/Class;)Ljava/lang/Object;"))
public Object removeServicesSupport(Class<?> spi) {
return new GsonDeserializer<>();
}