Skip to content

Commit

Permalink
Let's disable it
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim203 committed Aug 28, 2024
1 parent bd221cb commit 71a766c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/global_api_web/web_socket/web_socket.ex
Original file line number Diff line number Diff line change
Expand Up @@ -118,28 +118,28 @@ defmodule GlobalApiWeb.WebSocket do
{[{:close, @invalid_data}], state}

{:invalid_size, extra_data} ->
store(client_data, 0)
# store(client_data, 0)
handle_extra_data(extra_data)

send_log_message(state, @info, "received a skin with an invalid skin size")
{:ok, state}

{:invalid_geometry, extra_data} ->
store(client_data, 1)
# store(client_data, 1)
handle_extra_data(extra_data)

send_log_message(state, @info, "received a skin with invalid geometry")
{:ok, state}

{:invalid_geometry, reason, extra_data} ->
store(client_data, 2)
# store(client_data, 2)
handle_extra_data(extra_data)

send_log_message(state, @info, "received a skin with invalid geometry: #{reason}")
{:ok, state}

{is_steve, png, rgba_hash, minecraft_hash, {xuid, _, _} = extra_data} ->
store(client_data, 3)
# store(client_data, 3)
handle_extra_data(extra_data)

# check for cached skin
Expand Down

0 comments on commit 71a766c

Please sign in to comment.