Skip to content

Commit 39e4251

Browse files
committed
Quick fix to use nodes directly instead of edges for determining car locations
1 parent dadbc62 commit 39e4251

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ org.gradle.jvmargs=-Xmx2G
22

33
maven_group = com.littlechasiu
44
archives_base_name = create-track-map
5-
mod_version = 1.0
5+
mod_version = 1.0.1
66

77
minecraft_version = 1.19.2
88
loader_version = 0.14.12

src/main/kotlin/com/littlechasiu/trackmap/Extensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ val TrackEdge.sendable
5656
val TravellingPoint.sendable
5757
get() =
5858
DimensionLocation(
59-
dimension = edge.node1.location.dimension.string,
59+
dimension = node1?.location?.dimension?.string ?: "",
6060
location = getPosition().sendable,
6161
)
6262

0 commit comments

Comments
 (0)