Fixed not all wearables being detected

This commit is contained in:
Sollace 2024-03-05 12:10:15 +00:00
parent 50e83bb930
commit 8aa189f928
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -62,8 +62,8 @@ public interface TriggerPixel<T> {
@SuppressWarnings("unchecked")
Set<T> values = EnumSet.noneOf((Class<T>)def.def().getClass());
if (flagReader.readFlag(ColorHelper.Argb.getRed(color), values)
|| flagReader.readFlag(ColorHelper.Argb.getGreen(color), values)
|| flagReader.readFlag(ColorHelper.Argb.getBlue(color), values)) {
| flagReader.readFlag(ColorHelper.Argb.getGreen(color), values)
| flagReader.readFlag(ColorHelper.Argb.getBlue(color), values)) {
return new Flags<>(def.def(), values, color & 0x00FFFFFF);
}
return def;