aboutsummaryrefslogtreecommitdiffstats
path: root/NeoForge/src/main/resources
diff options
context:
space:
mode:
authorSw3ys2026-08-22 15:50:45 +0100
committerSw3ys2026-08-22 18:08:54 +0100
commit1b40c469fd7f32ea76bb150383708ebfc045c931 (patch)
tree15420ddda1f36f0ba77a2c193803545c2b1879f4 /NeoForge/src/main/resources
parent503948e1b2b3087306a1faf650daa0d52b1c2398 (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 'NeoForge/src/main/resources')
-rw-r--r--NeoForge/src/main/resources/nochatrestrictions.mixins.json3
1 files changed, 1 insertions, 2 deletions
diff --git a/NeoForge/src/main/resources/nochatrestrictions.mixins.json b/NeoForge/src/main/resources/nochatrestrictions.mixins.json
index c74587e..c9e96c5 100644
--- a/NeoForge/src/main/resources/nochatrestrictions.mixins.json
+++ b/NeoForge/src/main/resources/nochatrestrictions.mixins.json
@@ -5,8 +5,7 @@
"refmap": "nochatrestrictions.refmap.json",
"mixins": [],
"client": [
- "MixinMinecraft",
- "MixinYggdrasilUserApiService"
+ "MixinMinecraft"
],
"injectors": {
"defaultRequire": 1