From 39e42516feeec04f30492fa7ae259f5cc290ec77 Mon Sep 17 00:00:00 2001 From: Jennifer Chan Date: Sat, 8 Apr 2023 15:33:00 -0400 Subject: [PATCH] Quick fix to use nodes directly instead of edges for determining car locations --- gradle.properties | 2 +- src/main/kotlin/com/littlechasiu/trackmap/Extensions.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 0d36260..61245aa 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx2G maven_group = com.littlechasiu archives_base_name = create-track-map -mod_version = 1.0 +mod_version = 1.0.1 minecraft_version = 1.19.2 loader_version = 0.14.12 diff --git a/src/main/kotlin/com/littlechasiu/trackmap/Extensions.kt b/src/main/kotlin/com/littlechasiu/trackmap/Extensions.kt index 7ec8bb0..36eae50 100644 --- a/src/main/kotlin/com/littlechasiu/trackmap/Extensions.kt +++ b/src/main/kotlin/com/littlechasiu/trackmap/Extensions.kt @@ -56,7 +56,7 @@ val TrackEdge.sendable val TravellingPoint.sendable get() = DimensionLocation( - dimension = edge.node1.location.dimension.string, + dimension = node1?.location?.dimension?.string ?: "", location = getPosition().sendable, )