mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-08 12:00:19 +01:00
Properly check for empty set
This commit is contained in:
parent
09af6ad186
commit
ba35efd021
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user