Fix #101, small change to lag determination and fix 1.8.8 combat checks not working

This commit is contained in:
Rammelkast committed 2020-08-06 13:48:38 +02:00
1 parent 16c778c17f
commit 5f181c556e
6 files changed
+30 -15

No files matched your search

@@ -68,6 +68,7 @@ public class User {
this.name = getPlayer() != null && getPlayer().isOnline() ? getPlayer().getName() : "";
this.id = getPlayer() != null && getPlayer().isOnline() ? getPlayer().getEntityId() : -1;
this.movementManager = new MovementManager();
this.ping = getPlayer() != null && getPlayer().isOnline() ? VersionUtil.getPlayerPing(getPlayer()) : -1;
}
/**