Move to login mode when client wants to
Some checks failed
Build & Test / nix-build (push) Failing after 17s
Some checks failed
Build & Test / nix-build (push) Failing after 17s
This commit is contained in:
parent
809a37c644
commit
9f9abf277d
@ -53,6 +53,7 @@ defmodule Amethyst.Server.Handshake do
|
|||||||
Logger.info("Got handshake, version #{ver} on #{addr}:#{port}. Wants to move to #{next}")
|
Logger.info("Got handshake, version #{ver} on #{addr}:#{port}. Wants to move to #{next}")
|
||||||
case next do
|
case next do
|
||||||
:status -> Amethyst.Server.Status.serve(client)
|
:status -> Amethyst.Server.Status.serve(client)
|
||||||
|
:login -> Amethyst.Server.Login.serve(client)
|
||||||
_ -> raise RuntimeError, "Unhandled move to next mode #{next}"
|
_ -> raise RuntimeError, "Unhandled move to next mode #{next}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -21,7 +21,6 @@ defmodule Amethyst.Server.Login do
|
|||||||
require Logger
|
require Logger
|
||||||
use Amethyst.Server
|
use Amethyst.Server
|
||||||
|
|
||||||
alias Credo.Execution.Task.WriteDebugReport
|
|
||||||
alias Amethyst.Minecraft.Read
|
alias Amethyst.Minecraft.Read
|
||||||
alias Amethyst.Minecraft.Write
|
alias Amethyst.Minecraft.Write
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user