Fix Max-Relation bug

This commit is contained in:
David 2019-02-17 11:29:29 +01:00
parent 707b7796c6
commit 86bc78d082

@ -110,7 +110,7 @@ public abstract class FRelationCommand extends FCommand {
msg(TL.COMMAND_RELATIONS_EXCEEDS_ME, max, targetRelation.getPluralTranslation());
return true;
}
if (them.getRelationCount(targetRelation) > max) {
if (them.getRelationCount(targetRelation) >= max) {
msg(TL.COMMAND_RELATIONS_EXCEEDS_THEY, max, targetRelation.getPluralTranslation());
return true;
}