From 3ca65be14d8e8645faf76ec6f8490255f25daf13 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Mon, 16 Oct 2023 11:32:12 +0000 Subject: [PATCH] Added "online check" for player nickname in computer.addUser() --- lib/ocelot-brain | 2 +- src/main/scala/ocelot/desktop/OcelotDesktop.scala | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ocelot-brain b/lib/ocelot-brain index 5255398..aee0667 160000 --- a/lib/ocelot-brain +++ b/lib/ocelot-brain @@ -1 +1 @@ -Subproject commit 525539880fd9510b5a5e476a951d3661a0f5bfa2 +Subproject commit aee06672fb4b8537a1279ae71d5c6b5cb2065cb8 diff --git a/src/main/scala/ocelot/desktop/OcelotDesktop.scala b/src/main/scala/ocelot/desktop/OcelotDesktop.scala index dd4ba51..a230b5f 100644 --- a/src/main/scala/ocelot/desktop/OcelotDesktop.scala +++ b/src/main/scala/ocelot/desktop/OcelotDesktop.scala @@ -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()