Compare commits

...

2 Commits

Author SHA1 Message Date
7348ed5d28
Merge branch 'main' of git.colon-three.com:kodi/amethyst
All checks were successful
Build & Test / nix-build (push) Successful in 1m12s
2024-08-04 07:52:54 +02:00
3b4eaef455
Undo that mistake 2024-08-04 07:52:48 +02:00

View File

@ -266,7 +266,7 @@ defmodule Amethyst.Server.Configuration do
Logger.error("Unhandled but known packet #{elem(tuple, 0)}") Logger.error("Unhandled but known packet #{elem(tuple, 0)}")
{:unhandled, state} {:unhandled, state}
end end
defp handle_plugin_message("minecraft:brand", data, client, state) do defp handle_plugin_message("minecraft:brand", data, _client, state) do
{[brand], ""} = Read.start(data) |> Read.string |> Read.stop {[brand], ""} = Read.start(data) |> Read.string |> Read.stop
Logger.info("Client using brand: #{brand}") Logger.info("Client using brand: #{brand}")
{:ok, Keyword.put(state, :brand, brand)} {:ok, Keyword.put(state, :brand, brand)}