Undo that mistake

This commit is contained in:
Kodi Craft 2024-08-04 07:47:58 +02:00
parent a285e31175
commit 3b4eaef455
Signed by: kodi
GPG Key ID: 69D9EED60B242822

View File

@ -266,10 +266,9 @@ defmodule Amethyst.Server.Configuration do
Logger.error("Unhandled but known packet #{elem(tuple, 0)}")
{:unhandled, state}
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
Logger.info("Client using brand: #{brand}")
transmit({:clientbound_plugin_message, "minecraft:brand", "amethyst"}, client)
{:ok, Keyword.put(state, :brand, brand)}
end
defp handle_plugin_message("amethyst:hello", _data, client, state) do