This commit is contained in:
asofold 2013-12-01 12:54:15 +01:00
parent 9e1c3e392d
commit fad90d175a

View File

@ -97,6 +97,7 @@ public class Direction extends Check {
if (data.directionLastViolationTime + cc.directionPenalty > System.currentTimeMillis()) {
// A safeguard to avoid people getting stuck in penalty time indefinitely in case the system time of the
// server gets changed.
// TODO: Change this to a general attack penalty time.
if (data.directionLastViolationTime > System.currentTimeMillis())
data.directionLastViolationTime = 0;