summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2021-11-23 13:28:56 +0100
committerCGantert345 <57003061+CGantert345@users.noreply.github.com>2021-11-23 13:28:56 +0100
commit900acb165c53e9801112c3f1b8f57ff4d9ad531d (patch)
tree2337e4b6eb4a1631569dfd0bdee2b902d92a76c3 /src/main
parentrenamed (diff)
downloadUIC-barcode-900acb165c53e9801112c3f1b8f57ff4d9ad531d.tar
UIC-barcode-900acb165c53e9801112c3f1b8f57ff4d9ad531d.tar.gz
UIC-barcode-900acb165c53e9801112c3f1b8f57ff4d9ad531d.tar.bz2
UIC-barcode-900acb165c53e9801112c3f1b8f57ff4d9ad531d.tar.lz
UIC-barcode-900acb165c53e9801112c3f1b8f57ff4d9ad531d.tar.xz
UIC-barcode-900acb165c53e9801112c3f1b8f57ff4d9ad531d.tar.zst
UIC-barcode-900acb165c53e9801112c3f1b8f57ff4d9ad531d.zip
Diffstat (limited to '')
-rw-r--r--src/main/java/org/uic/barcode/ticket/UicRailTicketCoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/uic/barcode/ticket/UicRailTicketCoder.java b/src/main/java/org/uic/barcode/ticket/UicRailTicketCoder.java
index e9d2eb4..0586ed4 100644
--- a/src/main/java/org/uic/barcode/ticket/UicRailTicketCoder.java
+++ b/src/main/java/org/uic/barcode/ticket/UicRailTicketCoder.java
@@ -33,7 +33,7 @@ public class UicRailTicketCoder {
public byte[] encode (IUicRailTicket uicRailTicket, int version) throws IOException, EncodingFormatException{
- if (version == 13) {
+ if (version == 13 || version == 1) {
Api2OpenAsnEncoder uicEncoder = new Api2OpenAsnEncoder();