From 962f05821b6891227748b6361d80b34cdd994d66 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Thu, 19 May 2011 01:15:51 -0400 Subject: [PATCH] Minimal diffs. --- src/main/java/net/minecraft/server/NetServerHandler.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java index 6f484058c2..a63b4c972c 100644 --- a/src/main/java/net/minecraft/server/NetServerHandler.java +++ b/src/main/java/net/minecraft/server/NetServerHandler.java @@ -280,10 +280,7 @@ 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 (elapsedTicks < 0) { // We should account for time drifting backwards - elapsedTicks = 1; - } - if (d8 > 100.0D * (elapsedTicks == 0 ? 1 : elapsedTicks)) { + if (d8 > 100.0D * (elapsedTicks <= 0 ? 1 : elapsedTicks)) { 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;