mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-15 12:02:49 +01:00
Possible fix for teleports triggering 'moved too quickly' check.
This commit is contained in:
parent
949634ad67
commit
3cd135b08d
1 changed files with 2 additions and 1 deletions
|
@ -280,7 +280,8 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
|||
|
||||
// CraftBukkit start - make the movement speed check behave properly under tick degradation.
|
||||
int elapsedTicks = MinecraftServer.currentTick - this.lastTick;
|
||||
if (d8 > 100.0D * (elapsedTicks <= 0 ? 1 : elapsedTicks)) {
|
||||
// Added this.m condition to solve this check being triggered by teleports
|
||||
if (d8 > 100.0D * (elapsedTicks <= 0 ? 1 : elapsedTicks) && this.m) {
|
||||
a.warning(this.player.name + " moved too quickly! Elapsed ticks: " + (elapsedTicks == 0 ? 1 : elapsedTicks) + ", Distance change: " + d8);
|
||||
this.disconnect("You moved too quickly :( (Hacking?)");
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue