Update FRelationCommand.java

This commit is contained in:
Drc-DEV 2019-02-17 19:16:21 +01:00 committed by GitHub
parent 3b7cdbdae3
commit b7acf7e62e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}