Move to login mode when client wants to
Some checks failed
Build & Test / nix-build (push) Failing after 17s

This commit is contained in:
Kodi Craft 2024-07-08 16:59:02 +02:00
parent 809a37c644
commit 9f9abf277d
Signed by: kodi
GPG Key ID: 69D9EED60B242822
2 changed files with 1 additions and 1 deletions

View File

@ -53,6 +53,7 @@ defmodule Amethyst.Server.Handshake do
Logger.info("Got handshake, version #{ver} on #{addr}:#{port}. Wants to move to #{next}")
case next do
:status -> Amethyst.Server.Status.serve(client)
:login -> Amethyst.Server.Login.serve(client)
_ -> raise RuntimeError, "Unhandled move to next mode #{next}"
end
end

View File

@ -21,7 +21,6 @@ defmodule Amethyst.Server.Login do
require Logger
use Amethyst.Server
alias Credo.Execution.Task.WriteDebugReport
alias Amethyst.Minecraft.Read
alias Amethyst.Minecraft.Write