From f2783cf1f533fb2476de668abd5efda9ab50f21a Mon Sep 17 00:00:00 2001 From: asofold Date: Mon, 7 Sep 2015 01:11:55 +0200 Subject: [PATCH] Do check for the other types of flying packets. --- .../checks/net/protocollib/FlyingFrequency.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/NCPCompatProtocolLib/src/main/java/fr/neatmonster/nocheatplus/checks/net/protocollib/FlyingFrequency.java b/NCPCompatProtocolLib/src/main/java/fr/neatmonster/nocheatplus/checks/net/protocollib/FlyingFrequency.java index bf35202c..b826e74e 100644 --- a/NCPCompatProtocolLib/src/main/java/fr/neatmonster/nocheatplus/checks/net/protocollib/FlyingFrequency.java +++ b/NCPCompatProtocolLib/src/main/java/fr/neatmonster/nocheatplus/checks/net/protocollib/FlyingFrequency.java @@ -51,11 +51,10 @@ public class FlyingFrequency extends BaseAdapter { // PacketPlayInFlying[3, legacy: 10] super(plugin, ListenerPriority.LOW, new PacketType[] { PacketType.Play.Client.FLYING, - // TODO: What with the other packets (specifically on player-join, compare PlayerMoveEvent)? -// PacketType.Play.Client.LOOK, -// PacketType.Play.Client.POSITION, -// PacketType.Play.Client.POSITION_LOOK - }); + PacketType.Play.Client.LOOK, + PacketType.Play.Client.POSITION, + PacketType.Play.Client.POSITION_LOOK + }); } @Override @@ -78,7 +77,7 @@ public class FlyingFrequency extends BaseAdapter { final NetData data = dataFactory.getData(player); data.lastKeepAliveTime = time; // Update without much of a contract. - + // Counting all packets. // TODO: Consider using the NetStatic check. data.flyingFrequencyAll.add(time, 1f);