mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Increase small teleport range and immediately update location instead of queuing
This commit is contained in:
parent
4cc29a6ee6
commit
a579b453b0
1 changed files with 4 additions and 4 deletions
|
|
@ -793,11 +793,11 @@ namespace MinecraftClient
|
||||||
{
|
{
|
||||||
lock (locationLock)
|
lock (locationLock)
|
||||||
{
|
{
|
||||||
if (allowSmallTeleport && location.DistanceSquared(this.location) <= 16)
|
if (allowSmallTeleport && location.DistanceSquared(this.location) <= 32)
|
||||||
{
|
{
|
||||||
// Allow small teleport within a range of 4 blocks. 1-step path to the desired location without checking anything
|
// Allow small teleport within a range of 8 blocks. 1-step path to the desired location without checking anything
|
||||||
path = null;
|
UpdateLocation(location, location); // Update yaw and pitch to look at next step
|
||||||
steps = new Queue<Location>(new[] { location });
|
handler.SendLocationUpdate(location, Movement.IsOnGround(world, location), yaw, pitch);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue