From 533c179622231f82927650f5afcfcc7960313212 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 12 Jun 2013 16:25:11 +0200 Subject: [PATCH] Added Client Lag detection --- src/Player.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Player.php b/src/Player.php index 85381f32..16c5d3b6 100644 --- a/src/Player.php +++ b/src/Player.php @@ -883,6 +883,8 @@ class Player{ case MC_SET_HEALTH: continue; } + }elseif(($p["counter"] - $this->receiveCount) > 16){ + continue; } } $this->handleDataPacket($p["id"], $p);