mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Supports changing position and angle after catching fish
This commit is contained in:
parent
ccb8610020
commit
949126c9cb
7 changed files with 249 additions and 38 deletions
|
|
@ -643,5 +643,25 @@ namespace MinecraftClient.Mapping
|
|||
throw new ArgumentException("Unknown direction", "direction");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Check that the chunks at both the start and destination locations have been loaded
|
||||
/// </summary>
|
||||
/// <param name="world">Current world</param>
|
||||
/// <param name="start">Start location</param>
|
||||
/// <param name="dest">Destination location</param>
|
||||
/// <returns>Is loading complete</returns>
|
||||
public static bool CheckChunkLoading(World world, Location start, Location dest)
|
||||
{
|
||||
ChunkColumn? chunkColumn = world.GetChunkColumn(dest);
|
||||
if (chunkColumn == null || chunkColumn.FullyLoaded == false)
|
||||
return false;
|
||||
|
||||
chunkColumn = world.GetChunkColumn(start);
|
||||
if (chunkColumn == null || chunkColumn.FullyLoaded == false)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue