From 1b40c469fd7f32ea76bb150383708ebfc045c931 Mon Sep 17 00:00:00 2001 From: Sw3ys Date: Sat, 22 Aug 2026 15:50:45 +0100 Subject: Wrap user properties on read instead of transforming authlib Account switchers fetch UserProperties themselves and assign the result straight to Minecraft#userPropertiesFuture, so wrapping the service at createUserApiService does not reliably survive a switch. Hooking Minecraft#userProperties instead covers every read, no matter which service or properties instance is currently in place. This also works on all three loaders, unlike the YggdrasilUserApiService mixin, which can only be applied on Fabric since Forge and NeoForge load authlib outside of the transformable class path. That mixin is now redundant and has been removed. Co-Authored-By: Claude Opus 5 --- Forge/src/main/resources/nochatrestrictions.mixins.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Forge/src/main/resources') diff --git a/Forge/src/main/resources/nochatrestrictions.mixins.json b/Forge/src/main/resources/nochatrestrictions.mixins.json index c74587e..c9e96c5 100644 --- a/Forge/src/main/resources/nochatrestrictions.mixins.json +++ b/Forge/src/main/resources/nochatrestrictions.mixins.json @@ -5,8 +5,7 @@ "refmap": "nochatrestrictions.refmap.json", "mixins": [], "client": [ - "MixinMinecraft", - "MixinYggdrasilUserApiService" + "MixinMinecraft" ], "injectors": { "defaultRequire": 1 -- cgit v1.2.3