Replace code with hasFlag() where appropriate.

This commit is contained in:
MattBDev
2019-05-01 12:31:50 -04:00
parent f72d39ed85
commit 2ec13e4e76
2 changed files with 6 additions and 6 deletions

View File

@ -180,7 +180,7 @@ public final class Flags {
}
});
PlotSquared.get().forEachPlotRaw(value -> {
if (value.getFlags().containsKey(duplicate)) {
if (value.hasFlag(duplicate)) {
Object remove = value.getFlags().remove(duplicate);
try {
if (remove instanceof Collection