Added additional check on gem attributes listFlags

This commit is contained in:
Collin Smith
2020-09-06 13:06:38 -07:00
parent fc1b7a73a1
commit d0e69cf74c

View File

@ -25,7 +25,9 @@ public class AttributesUpdater {
}
case Attributes.GEM: {
final int gemListCount = StatListFlags.countGemFlags(listFlags);
if (gemListCount > 1) {
if (gemListCount == 0) {
log.warnf("listFlags(0x%x) does not have any gem list selected");
} else if (gemListCount > 1) {
log.warnf("listFlags(0x%x) contains more than 1 gem list", listFlags);
}
break;