mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
fix: correct enchantment mapping typo messages
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
a79373c713
commit
d9f79bf512
1 changed files with 3 additions and 3 deletions
|
|
@ -239,7 +239,7 @@ namespace MinecraftClient.Inventory
|
|||
public static Enchantments GetEnchantmentById(int protocolVersion, short id)
|
||||
{
|
||||
if (protocolVersion < Protocol18Handler.MC_1_14_Version)
|
||||
throw new Exception("Enchantments mappings are not implemented bellow 1.14");
|
||||
throw new Exception("Enchantments mappings are not implemented below 1.14");
|
||||
|
||||
var map = GetMapForProtocolVersion(protocolVersion);
|
||||
|
||||
|
|
@ -391,7 +391,7 @@ namespace MinecraftClient.Inventory
|
|||
>= 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,
|
||||
_ => enchantmentMappings119
|
||||
_ => throw new Exception("Enchantments mappings are not implemented below 1.14")
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -404,7 +404,7 @@ namespace MinecraftClient.Inventory
|
|||
>= 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,
|
||||
_ => reverseEnchantmentMappings119
|
||||
_ => throw new Exception("Enchantments mappings are not implemented below 1.14")
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue