mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
avoid pathfind to an unloaded chunk | remove debug logs
This commit is contained in:
parent
f9bb74a8bd
commit
af574b654e
3 changed files with 4 additions and 3 deletions
|
|
@ -76,7 +76,9 @@ namespace MinecraftClient.Commands
|
|||
int z = int.Parse(args[2]);
|
||||
Location goal = new Location(x, y, z);
|
||||
|
||||
if (handler.MoveTo(goal, allowUnsafe: takeRisk))
|
||||
if (handler.GetWorld().GetChunkColumn(goal) == null)
|
||||
return Translations.Get("cmd.move.chunk_not_loaded");
|
||||
else if (handler.MoveTo(goal, allowUnsafe: takeRisk))
|
||||
return Translations.Get("cmd.move.walk", goal);
|
||||
else return takeRisk ? Translations.Get("cmd.move.fail", goal) : Translations.Get("cmd.move.suggestforce", goal);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue