Properly check for empty set

This commit is contained in:
Trent Hensler 2018-01-22 16:38:01 -08:00
parent 09af6ad186
commit ba35efd021

View File

@ -309,7 +309,7 @@ public class ItemDb implements IConf, net.ess3.api.IItemDb {
}
Set<ItemFlag> flags = meta.getItemFlags();
if (flags != null && meta.getItemFlags().size() > 0) {
if (flags != null && !flags.isEmpty()) {
sb.append("itemflags:");
boolean first = true;
for (ItemFlag flag : flags) {