Merge branch 'feature/adduser-presence-check' into 'develop'

Added "online check" for player nickname in computer.addUser()

See merge request cc-ru/ocelot/ocelot-desktop!77
This commit is contained in:
Igor Timofeev 2023-10-16 11:32:12 +00:00
commit d97cbf05f3
2 changed files with 2 additions and 1 deletions

@ -1 +1 @@
Subproject commit 525539880fd9510b5a5e476a951d3661a0f5bfa2
Subproject commit aee06672fb4b8537a1279ae71d5c6b5cb2065cb8

View File

@ -107,6 +107,7 @@ object OcelotDesktop
splashScreen.setStatus("Initializing brain...", 0.20f)
Ocelot.configPath = Settings.get.brainCustomConfigPath.map(Paths.get(_))
Ocelot.librariesPath = Some(OcelotPaths.libraries)
Ocelot.isPlayerOnlinePredicate = Some(player => players.exists(_.nickname == player))
Ocelot.initialize(logger)
Items.init()