Remove debug logs used for troubleshooting
All checks were successful
Build & Test / nix-build (pull_request) Successful in 2m40s
Build & Test / nix-build (push) Successful in 1m24s

This commit is contained in:
Kodi Craft 2024-10-04 11:42:21 +02:00
parent b40fee3c3c
commit 6ad910d4b4
Signed by: kodi
GPG Key ID: 69D9EED60B242822

View File

@ -155,12 +155,9 @@ defmodule Amethyst.ConnectionHandler do
palette = MapSet.to_list(unique_blocks) |> palette = MapSet.to_list(unique_blocks) |>
Enum.with_index() |> Enum.with_index() |>
Map.new(fn {i, v} -> {i, v} end) Map.new(fn {i, v} -> {i, v} end)
Logger.debug("Using palette #{inspect(palette)}")
paletted_blocks = blocks |> paletted_blocks = blocks |>
Enum.map(&(Map.get(palette, &1))) Enum.map(&(Map.get(palette, &1)))
Logger.debug("Paletted blocks: #{inspect(paletted_blocks)}")
paletted_data = long_aligned_bit_string_reduce(paletted_blocks, bpe) paletted_data = long_aligned_bit_string_reduce(paletted_blocks, bpe)
Logger.debug("Paletted data: #{inspect(paletted_data)}")
Write.ubyte(bpe) <> Write.ubyte(bpe) <>
Write.varint(map_size(palette)) <> Write.varint(map_size(palette)) <>