mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
¬¬
This commit is contained in:
parent
423ead6b64
commit
894325aef6
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue