Changed CharacterCreationRestriction to allow unlimited character creation

This commit is contained in:
Obique PSWG
2015-06-02 00:22:22 -05:00
parent b29d87d0fa
commit 5fe13240d7
2 changed files with 9 additions and 1 deletions
@@ -83,13 +83,15 @@ public class CharacterCreationRestriction {
if (lastCreations.size() < creationsPerPeriod)
return true;
if (creationsPerPeriod == 0)
return false;
return true;
Log.d("CharacterCreationRestriction", "Last: %d Within: %b", lastCreations.getLast(), isWithinPeriod(lastCreations.getLast().longValue()));
return !isWithinPeriod(lastCreations.getLast().longValue());
}
}
public boolean createdCharacter() {
if (creationsPerPeriod == 0)
return true;
synchronized (lastCreations) {
final boolean hitMax = lastCreations.size() >= creationsPerPeriod;
final boolean hackSuccess = hitMax && isWithinPeriod(lastCreations.getLast());