Fixed wrong translation usage

This commit is contained in:
FlorianMichael 2023-11-26 21:58:50 +01:00
parent cf93a0453a
commit 6ee3246a39
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -39,7 +39,7 @@ public class ViaFabricPlusOldAuthProvider extends OldAuthProvider {
mc.getSessionService().joinServer(mc.getSession().getUuidOrNull(), mc.getSession().getAccessToken(), serverId);
} catch (Exception e) {
user.getChannel().attr(ProtocolHack.CLIENT_CONNECTION_ATTRIBUTE_KEY).get().disconnect(ChatUtil.prefixText(Text.translatable("authentication_settings.viafabricplus.failed_to_verify_session")));
user.getChannel().attr(ProtocolHack.CLIENT_CONNECTION_ATTRIBUTE_KEY).get().disconnect(ChatUtil.prefixText(Text.translatable("authentication.viafabricplus.failed_to_verify_session")));
ViaFabricPlus.global().getLogger().error("Error occurred while calling join server to verify session", e);
}
}