Undo that mistake
This commit is contained in:
parent
a285e31175
commit
3b4eaef455
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user