Refine eventFight ID check in TNTLeagueConfig initialization.

This commit is contained in:
2025-03-02 15:14:10 +01:00
parent 2fad352f62
commit 6d4ae9593d
@@ -52,7 +52,7 @@ data class TNTLeagueConfig(
val redTeam: TeamConfig
init {
if (isEvent() && eventFightId != null) {
if (eventFightId != null && eventFightId > 0) {
eventFight = EventFight.get(eventFightId) ?: throw IllegalArgumentException("EventFight with ID $eventFightId not found")
event = Event.get(eventFight.eventID)