Skip to content

Commit d90e782

Browse files
committed
re-add game lobbies
1 parent ff603be commit d90e782

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ yarn_mappings=1.21+build.9
77
loader_version=0.15.11
88
fabric_kotlin_version=1.11.0+kotlin.2.0.0
99
fabric_api_version=0.100.7+1.21
10-
mod_version=1.12.0
10+
mod_version=1.12.1
1111
noxesium_version=2.1.0
1212
adventure_version=5.14.0
1313
cloud_version=2.0.0-beta.7

src/main/kotlin/de/derniklaas/buildbugs/utils/ServerState.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ data class ServerState(
2323
* If it's not known, it will return the [type] and [subType]
2424
*/
2525
fun getFancyName(type: String = this.serverType): String = when (type) {
26-
Constants.LOBBY -> "Lobby"
26+
Constants.LOBBY -> {
27+
if (subType == "main") "Main Lobby"
28+
else if (type == subType) "Lobby Lobby?"
29+
else "${getFancyName(subType)} Lobby"
30+
}
2731

2832
// Game modes
2933
Constants.PARKOUR_WARRIOR -> "Parkour Warrior"
@@ -34,7 +38,7 @@ data class ServerState(
3438
Constants.DYNABALL -> "Dynaball"
3539
Constants.ROCKET_SPLEEF_RUSH -> "Rocket Spleef"
3640

37-
// Event gametypes
41+
// Event game types
3842
Constants.HUB -> "Hub"
3943
Constants.ACE_RACE -> "Ace Race"
4044
Constants.PARKOUR_TAG -> "Parkour Tag"

0 commit comments

Comments
 (0)