mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Update translation file
This commit is contained in:
parent
e44192ab7b
commit
e5c713192e
11 changed files with 1887 additions and 97 deletions
|
|
@ -53,9 +53,24 @@ namespace MinecraftClient.ChatBots
|
|||
public void OnSettingUpdate()
|
||||
{
|
||||
_Table_Location = new Location(CraftingTable.X, CraftingTable.Y, CraftingTable.Z).ToFloor();
|
||||
|
||||
List<string> nameList = new();
|
||||
foreach (RecipeConfig recipe in Recipes)
|
||||
{
|
||||
recipe.Name ??= string.Empty;
|
||||
if (string.IsNullOrWhiteSpace(recipe.Name))
|
||||
{
|
||||
recipe.Name = new Random().NextInt64().ToString();
|
||||
LogToConsole(BotName, Translations.TryGet("bot.autoCraft.exception.name_miss"));
|
||||
}
|
||||
if (nameList.Contains(recipe.Name))
|
||||
{
|
||||
LogToConsole(BotName, Translations.TryGet("bot.autoCraft.exception.duplicate", recipe.Name));
|
||||
do
|
||||
{
|
||||
recipe.Name = new Random().NextInt64().ToString();
|
||||
} while (nameList.Contains(recipe.Name));
|
||||
}
|
||||
nameList.Add(recipe.Name);
|
||||
|
||||
int fixLength = -1;
|
||||
if (recipe.Type == CraftTypeConfig.player && recipe.Slots.Length != 4)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue