Undo that mistake
All checks were successful
Build & Test / nix-build (push) Successful in 1m11s

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

View File

@ -269,7 +269,6 @@ defmodule Amethyst.Server.Configuration do
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}")
transmit({:clientbound_plugin_message, "minecraft:brand", "amethyst"}, client)
{:ok, Keyword.put(state, :brand, brand)} {:ok, Keyword.put(state, :brand, brand)}
end end
defp handle_plugin_message("amethyst:hello", _data, client, state) do defp handle_plugin_message("amethyst:hello", _data, client, state) do