Skip to content

Commit 8086c8a

Browse files
fix: update version to 3.1.2-SNAPSHOT and clean up error handling in SurfNpcHook
1 parent 58afbee commit 8086c8a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
kotlin.code.style=official
22
kotlin.stdlib.default.dependency=false
33
org.gradle.parallel=true
4-
version=3.1.1-SNAPSHOT
4+
version=3.1.2-SNAPSHOT

src/main/kotlin/dev/slne/surf/lobby/hook/npc/SurfNpcHook.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ object SurfNpcHook {
248248
}
249249
}
250250
}
251-
} ?: error("Event server with name ${lobbyConfig.eventServerName} not found")
251+
}
252252
}
253253

254254
private fun queueToSurvivalServer(player: Player) {
@@ -307,7 +307,7 @@ object SurfNpcHook {
307307
}
308308
}
309309
}
310-
} ?: error("Survival server with name ${lobbyConfig.survivalServerName} not found")
310+
}
311311
}
312312

313313
private lateinit var syncTask: ScheduledTask

0 commit comments

Comments
 (0)