Fix sponge service returning subjects in reverse priority order

This commit is contained in:
Luck 2017-02-09 23:00:48 +00:00 committed by GitHub
parent 1df6f4b9df
commit 6a39b721ba

View File

@ -248,7 +248,7 @@ public class LuckPermsService implements PermissionService {
return 1;
}
return Integer.compare(g1.getWeight().orElse(0), g2.getWeight().orElse(0)) == 1 ? 1 : -1;
return Integer.compare(g1.getWeight().orElse(0), g2.getWeight().orElse(0)) == -1 ? 1 : -1;
});
return ImmutableList.copyOf(ret);
}