refactor: make enchantment version buckets explicit

Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/16e21ef0-6f09-4280-b539-8d704ddc3b67
This commit is contained in:
copilot-swe-agent[bot] 2026-03-25 18:03:36 +00:00
parent 71c01c739a
commit a79373c713

View file

@ -389,8 +389,9 @@ namespace MinecraftClient.Inventory
>= Protocol18Handler.MC_1_14_Version and < Protocol18Handler.MC_1_16_Version => enchantmentMappings114,
>= Protocol18Handler.MC_1_16_Version and < Protocol18Handler.MC_1_19_Version => enchantmentMappings116,
>= Protocol18Handler.MC_1_19_Version and < Protocol18Handler.MC_1_20_6_Version => enchantmentMappings119,
>= Protocol18Handler.MC_1_20_6_Version and < Protocol18Handler.MC_1_21_11_Version => enchantmentMappings1206,
>= Protocol18Handler.MC_1_21_11_Version => enchantmentMappings12111,
_ => enchantmentMappings1206
_ => enchantmentMappings119
};
}
@ -401,8 +402,9 @@ namespace MinecraftClient.Inventory
>= Protocol18Handler.MC_1_14_Version and < Protocol18Handler.MC_1_16_Version => reverseEnchantmentMappings114,
>= Protocol18Handler.MC_1_16_Version and < Protocol18Handler.MC_1_19_Version => reverseEnchantmentMappings116,
>= Protocol18Handler.MC_1_19_Version and < Protocol18Handler.MC_1_20_6_Version => reverseEnchantmentMappings119,
>= Protocol18Handler.MC_1_20_6_Version and < Protocol18Handler.MC_1_21_11_Version => reverseEnchantmentMappings1206,
>= Protocol18Handler.MC_1_21_11_Version => reverseEnchantmentMappings12111,
_ => reverseEnchantmentMappings1206
_ => reverseEnchantmentMappings119
};
}