diff --git a/MinecraftClient/Commands/Dig.cs b/MinecraftClient/Commands/Dig.cs index 9438d1bc..d82303c0 100644 --- a/MinecraftClient/Commands/Dig.cs +++ b/MinecraftClient/Commands/Dig.cs @@ -33,7 +33,7 @@ namespace MinecraftClient.Commands try { Location current = handler.GetCurrentLocation(); - Location blockToBreak = Location.Parse(current, args[0], args[1], args[2]); + Location blockToBreak = Location.Parse(current.ToFloor(), args[0], args[1], args[2]); if (blockToBreak.DistanceSquared(current.EyesLocation()) > 25) return Translations.Get("cmd.dig.too_far"); Block block = handler.GetWorld().GetBlock(blockToBreak); diff --git a/MinecraftClient/Commands/Useblock.cs b/MinecraftClient/Commands/Useblock.cs index 05284afd..5d8bf32e 100644 --- a/MinecraftClient/Commands/Useblock.cs +++ b/MinecraftClient/Commands/Useblock.cs @@ -18,7 +18,7 @@ namespace MinecraftClient.Commands string[] args = GetArgs(command); if (args.Length >= 3) { - Location block = Location.Parse(handler.GetCurrentLocation(), args[0], args[1], args[2]).ToFloor(); + Location block = Location.Parse(handler.GetCurrentLocation().ToFloor(), args[0], args[1], args[2]).ToFloor(); Location blockCenter = block.ToCenter(); bool res = handler.PlaceBlock(block, Direction.Down); return Translations.Get("cmd.useblock.use", blockCenter.X, blockCenter.Y, blockCenter.Z, res ? "succeeded" : "failed"); diff --git a/MinecraftClient/Settings.cs b/MinecraftClient/Settings.cs index 45093a0d..51041b96 100644 --- a/MinecraftClient/Settings.cs +++ b/MinecraftClient/Settings.cs @@ -393,6 +393,9 @@ namespace MinecraftClient } SetServerIP(General.Server, true); + + for (int i = 0; i < Advanced.BotOwners.Count; ++i) + Advanced.BotOwners[i] = ToLowerIfNeed(Advanced.BotOwners[i]); } [TomlDoNotInlineObject]