change some size() comparisons, to isEmpty()

This commit is contained in:
Ingmar Goudt 2019-07-14 20:53:23 +02:00
parent 5ba206111a
commit eb0cfc94f8
23 changed files with 35 additions and 36 deletions

View file

@ -70,7 +70,7 @@ enum FaceOfDivinityCondition implements Condition {
Permanent currentAura = game.getPermanent(source.getSourceId());
if (currentAura != null && currentAura.getAttachedTo() != null) {
Permanent permanent = game.getPermanent(currentAura.getAttachedTo());
if (permanent != null && permanent.getAttachments().size() > 0) {
if (permanent != null && !permanent.getAttachments().isEmpty()) {
for (UUID id : permanent.getAttachments()) {
Permanent otherAura = game.getPermanent(id);
if (otherAura != null && !otherAura.getId().equals(currentAura.getId())