diff --git a/lib/consts.dart b/lib/consts.dart index 0f49b9f..43f1286 100644 --- a/lib/consts.dart +++ b/lib/consts.dart @@ -9,7 +9,7 @@ class TTConsts { static get SESSION_SERVER => "https://api.zontreck.com/timetrack/$UPDATE_CHANNEL/timetrack.php"; - static const VERSION = "1.0.0-beta.33"; + static const VERSION = "1.0.0-beta.34"; static bool UPDATE_AVAILABLE = false; static UpdateChannel UPDATE_CHANNEL = UpdateChannel.beta; diff --git a/lib/data.dart b/lib/data.dart index cdc1c51..446dda1 100644 --- a/lib/data.dart +++ b/lib/data.dart @@ -1,6 +1,5 @@ import 'dart:async'; import 'dart:convert'; -import 'dart:io'; import 'dart:math' as math; import 'dart:typed_data'; import 'dart:ui'; @@ -502,13 +501,11 @@ class SessionData { } if (ct.containsKey("current_trip")) { - currentTrip = await Trip.fromNBT(ct.get("current_trip")!.asCompoundTag()); + currentTrip = Trips.last; } if (ct.containsKey("current_delivery")) { - currentDelivery = await Delivery.fromNBT( - ct.get("current_delivery")!.asCompoundTag(), - ); + currentDelivery = currentTrip!.deliveries.last; } print("Deserialized data: ${SnbtIo.writeToString(ct)}"); diff --git a/pubspec.yaml b/pubspec.yaml index dbc3b3a..67e4053 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.0-beta.33 +version: 1.0.0-beta.34 environment: sdk: ^3.7.2