1
0
forked from xjboss/KCauldronX
This commit is contained in:
Prototik 2015-08-14 03:34:11 +07:00
parent ac8700f8a6
commit 1488e0fdc4

View File

@ -16,7 +16,7 @@ public class TickLimiter {
} }
public boolean shouldContinue() { public boolean shouldContinue() {
if (++tick >= 300 && !shouldContinue) { if (++tick >= 300 && shouldContinue) {
tick = 0; tick = 0;
shouldContinue = System.currentTimeMillis() - startTime < maxTime; shouldContinue = System.currentTimeMillis() - startTime < maxTime;
} }