mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Add AutoDig ChatBot
This commit is contained in:
parent
4cb95731bf
commit
c57ac183d5
16 changed files with 579 additions and 64 deletions
|
|
@ -986,6 +986,13 @@ namespace MinecraftClient
|
|||
set { ChatBots.AutoCraft.Config = value; ChatBots.AutoCraft.Config.OnSettingUpdate(); }
|
||||
}
|
||||
|
||||
[TomlPrecedingComment("$config.ChatBot.AutoDig$")]
|
||||
public ChatBots.AutoDig.Configs AutoDig
|
||||
{
|
||||
get { return ChatBots.AutoDig.Config; }
|
||||
set { ChatBots.AutoDig.Config = value; ChatBots.AutoDig.Config.OnSettingUpdate(); }
|
||||
}
|
||||
|
||||
[TomlPrecedingComment("$config.ChatBot.AutoDrop$")]
|
||||
public ChatBots.AutoDrop.Configs AutoDrop
|
||||
{
|
||||
|
|
@ -1170,6 +1177,12 @@ namespace MinecraftClient
|
|||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
public static int DoubleToTick(double time)
|
||||
{
|
||||
time = Math.Min(int.MaxValue / 10, time);
|
||||
return (int)Math.Round(time * 10);
|
||||
}
|
||||
}
|
||||
|
||||
public static class InternalCmdCharTypeExtensions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue