aboutsummaryrefslogtreecommitdiffstats
path: root/Forge/src/main/resources
diff options
context:
space:
mode:
authorSw3ys2026-08-22 16:24:54 +0100
committerSw3ys2026-08-22 16:24:54 +0100
commit29184dc93eaa54b1cbc6c669c165380b6a1ce5d3 (patch)
tree1328ee5311085b4c1b471e35ea0aa07b57ad31aa /Forge/src/main/resources
parentd23be8fc2740a78190332eb8021ade04d4679906 (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'Forge/src/main/resources')
-rw-r--r--Forge/src/main/resources/nochatrestrictions.mixins.json3
1 files changed, 1 insertions, 2 deletions
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