mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
¬¬
This commit is contained in:
parent
423ead6b64
commit
894325aef6
@ -1229,10 +1229,10 @@ class Player{
|
|||||||
case MC_PONG:
|
case MC_PONG:
|
||||||
break;
|
break;
|
||||||
case MC_PING:
|
case MC_PING:
|
||||||
$t = (int) (microtime(true) * 1000);
|
$t = abs(microtime(true) * 1000);
|
||||||
$this->dataPacket(MC_PONG, array(
|
$this->dataPacket(MC_PONG, array(
|
||||||
"ptime" => $data["time"],
|
"ptime" => $data["time"],
|
||||||
"time" => (int) (microtime(true) * 1000),
|
"time" => $t,
|
||||||
));
|
));
|
||||||
$this->sendBuffer();
|
$this->sendBuffer();
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user