Fix event initialization check in TNTLeagueConfig

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