mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
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:
parent
71c01c739a
commit
a79373c713
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue