mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Bug fix
This commit is contained in:
parent
2f5914dd6f
commit
f567cadc47
3 changed files with 5 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue