Minor network packet handling tweaks

This commit is contained in:
Anuken
2021-03-04 17:58:28 -05:00
parent d863c971c2
commit c12b9ee3e3
4 changed files with 18 additions and 5 deletions

View File

@@ -19,6 +19,8 @@ public abstract class NetConnection{
public @Nullable Player player;
public boolean kicked = false;
/** When this connection was established. */
public long connectTime = Time.millis();
/** ID of last received client snapshot. */
public int lastReceivedClientSnapshot = -1;
/** Timestamp of last received snapshot. */