summaryrefslogtreecommitdiff
path: root/backend/src/main/kotlin/org/luxons
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src/main/kotlin/org/luxons')
-rw-r--r--backend/src/main/kotlin/org/luxons/sevenwonders/repositories/LobbyRepository.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/src/main/kotlin/org/luxons/sevenwonders/repositories/LobbyRepository.kt b/backend/src/main/kotlin/org/luxons/sevenwonders/repositories/LobbyRepository.kt
index 7ca78233..768aa659 100644
--- a/backend/src/main/kotlin/org/luxons/sevenwonders/repositories/LobbyRepository.kt
+++ b/backend/src/main/kotlin/org/luxons/sevenwonders/repositories/LobbyRepository.kt
@@ -1,6 +1,6 @@
package org.luxons.sevenwonders.repositories
-import org.luxons.sevenwonders.game.data.GameDefinitionLoader
+import org.luxons.sevenwonders.game.data.GameDefinition
import org.luxons.sevenwonders.lobby.Lobby
import org.luxons.sevenwonders.lobby.Player
import org.springframework.beans.factory.annotation.Autowired
@@ -18,7 +18,7 @@ class LobbyRepository @Autowired constructor() {
fun create(gameName: String, owner: Player): Lobby {
val id = lastGameId++
- val lobby = Lobby(id, gameName, owner, GameDefinitionLoader.gameDefinition)
+ val lobby = Lobby(id, gameName, owner, GameDefinition.load())
lobbies[id] = lobby
return lobby
}
bgstack15