Skip to content

Commit 1bd92fd

Browse files
committed
feat: also pass along slug
1 parent babd9f5 commit 1bd92fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/kotlin/network/warzone/mars/map/MapFeature.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ object MapFeature : NamedCachedFeature<GameMap>() {
102102
return MapLoadOneRequest(
103103
_id = id ?: UUID.randomUUID(),
104104
name = map.name,
105+
slug = map.id,
105106
version = map.version.toString(),
106107
gamemodes = map.gamemodes.map { it.name },
107108
authors = map.authors.mapNotNull { resolveContributor(it) },
@@ -127,6 +128,7 @@ object MapFeature : NamedCachedFeature<GameMap>() {
127128
data class MapLoadOneRequest(
128129
val _id: UUID,
129130
val name: String,
131+
val slug: String,
130132
val version: String,
131133
val gamemodes: List<String>,
132134
val authors: List<MapContributor>,

0 commit comments

Comments
 (0)