Fixed not all wearables being detected

This commit is contained in:
Sollace 2024-03-05 12:10:15 +00:00
parent aa08f12320
commit 76211930d5
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") @SuppressWarnings("unchecked")
Set<T> values = EnumSet.noneOf((Class<T>)def.def().getClass()); Set<T> values = EnumSet.noneOf((Class<T>)def.def().getClass());
if (flagReader.readFlag(ColorHelper.Argb.getRed(color), values) if (flagReader.readFlag(ColorHelper.Argb.getRed(color), values)
|| flagReader.readFlag(ColorHelper.Argb.getGreen(color), values) | flagReader.readFlag(ColorHelper.Argb.getGreen(color), values)
|| flagReader.readFlag(ColorHelper.Argb.getBlue(color), values)) { | flagReader.readFlag(ColorHelper.Argb.getBlue(color), values)) {
return new Flags<>(def.def(), values, color & 0x00FFFFFF); return new Flags<>(def.def(), values, color & 0x00FFFFFF);
} }
return def; return def;