chore: finalize recipe book support polish

Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/00c8527f-5755-43c1-8916-8d571d28860b

Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-03-29 18:12:01 +00:00
parent 893be203e5
commit dfc1164839
3 changed files with 4 additions and 10 deletions

View file

@ -3200,6 +3200,8 @@ namespace MinecraftClient.Protocol.Handlers
private bool SkipRecipeBookSettings(Queue<byte> packetData)
{
// MC 1.13 uses 4 booleans for the crafting/smelting recipe book states.
// MC 1.14+ expands this to 8 booleans by adding blast furnace and smoker states.
int boolCount = protocolVersion >= MC_1_14_Version ? 8 : 4;
if (packetData.Count < boolCount)
return false;