Closed NikitaCartes closed 2 years ago
I made the littlest mod that reproduce that bug: https://github.com/NikitaCartes-forks/TranslationBugExample
Basically it's just:
@Mixin(PlayerManager.class) public abstract class PlayerManagerMixin { @Inject(method = "checkCanJoin(Ljava/net/SocketAddress;Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/text/Text;", at = @At("HEAD"), cancellable = true) private void checkCanJoin(SocketAddress socketAddress, GameProfile profile, CallbackInfoReturnable<Text> cir) { TranslatableText returnText = new TranslatableText("text.bugexample.bugexample"); cir.setReturnValue(returnText); } }
This should be fixed in newer versions I think
I updated my mod to 1.18.2 but it's still doesn't translated
I made the littlest mod that reproduce that bug: https://github.com/NikitaCartes-forks/TranslationBugExample
Basically it's just: