mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-10 04:16:19 +00:00
Fixed RGBA equals method
This commit is contained in:
@@ -188,7 +188,7 @@ public class RGBA extends RGB implements Serializable {
|
||||
if (obj == null) {
|
||||
return false;
|
||||
}
|
||||
if (obj instanceof RGB) {
|
||||
if ((obj instanceof RGB) && (!(obj instanceof RGBA))) {
|
||||
final RGB other = (RGBA) obj;
|
||||
if (this.alpha != 255) {
|
||||
return false;
|
||||
@@ -218,5 +218,5 @@ public class RGBA extends RGB implements Serializable {
|
||||
return false;
|
||||
}
|
||||
return this.alpha == other.alpha;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user