mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Complete 1.13-1.14 item palettes
This commit is contained in:
parent
8e31a37ea9
commit
72001554a8
4 changed files with 2467 additions and 27 deletions
|
|
@ -3925,9 +3925,9 @@ 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;
|
||||
// MC 1.13-1.16.1 uses 4 booleans for the crafting/smelting recipe book states.
|
||||
// MC 1.16.2+ expands this to 8 booleans through RecipeBookSettings.
|
||||
int boolCount = protocolVersion >= MC_1_16_2_Version ? 8 : 4;
|
||||
if (packetData.Count < boolCount)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue