Fix bugs in gravity handle

This commit is contained in:
BruceChen 2022-07-25 03:19:24 +08:00
parent 86dfd60d07
commit 357820e1c2
7 changed files with 54 additions and 7 deletions

View file

@ -76,7 +76,7 @@ namespace MinecraftClient.Commands
int z = int.Parse(args[2]);
Location goal = new Location(x, y, z);
if (handler.GetWorld().GetChunkColumn(goal) == null)
if (handler.GetWorld().GetChunkColumn(goal) == null || handler.GetWorld().GetChunkColumn(goal).FullyLoaded == false)
return Translations.Get("cmd.move.chunk_not_loaded");
else if (handler.MoveTo(goal, allowUnsafe: takeRisk))
return Translations.Get("cmd.move.walk", goal);