From 29184dc93eaa54b1cbc6c669c165380b6a1ce5d3 Mon Sep 17 00:00:00 2001 From: Sw3ys Date: Sat, 22 Aug 2026 16:24:54 +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 --- NeoForge/src/main/resources/nochatrestrictions.mixins.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'NeoForge/src/main/resources') diff --git a/NeoForge/src/main/resources/nochatrestrictions.mixins.json b/NeoForge/src/main/resources/nochatrestrictions.mixins.json index c6f2888..8cdf752 100644 --- a/NeoForge/src/main/resources/nochatrestrictions.mixins.json +++ b/NeoForge/src/main/resources/nochatrestrictions.mixins.json @@ -6,8 +6,7 @@ "refmap": "nochatrestrictions.refmap.json", "mixins": [], "client": [ - "MixinMinecraft", - "MixinYggdrasilUserApiService" + "MixinMinecraft" ], "injectors": { "defaultRequire": 1 -- cgit v1.2.3