mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Implement command completion suggestions.
This commit is contained in:
parent
5d2589b10f
commit
84cf749344
115 changed files with 4684 additions and 2695 deletions
|
|
@ -36,7 +36,7 @@ namespace MinecraftClient.Mapping
|
|||
{
|
||||
if (start == end)
|
||||
return new(false, Location.Zero, Block.Air);
|
||||
|
||||
|
||||
double start_x = MathHelper.Lerp(-1.0E-7, start.X, end.X);
|
||||
double start_y = MathHelper.Lerp(-1.0E-7, start.Y, end.Y);
|
||||
double start_z = MathHelper.Lerp(-1.0E-7, start.Z, end.Z);
|
||||
|
|
@ -87,7 +87,7 @@ namespace MinecraftClient.Mapping
|
|||
res_location.Z += dz_sign;
|
||||
z_frac += z_step;
|
||||
}
|
||||
|
||||
|
||||
block = CheckRaycastResult(world, res_location, includeFluids);
|
||||
if (block.Type != Material.Air)
|
||||
return new(true, res_location, block);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue