Исправление
This commit is contained in:
parent
e9261e6b51
commit
a0e946e6c2
@ -1,5 +1,6 @@
|
||||
import java.awt.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Objects;
|
||||
|
||||
public class DrawingObjectArmoredCar implements IDrawingObject{
|
||||
private DrawingArmoredCar armoredCar = null;
|
||||
@ -80,13 +81,13 @@ public class DrawingObjectArmoredCar implements IDrawingObject{
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (car.getBodyColor() != otherCarCar.getBodyColor())
|
||||
if (car.getBodyColor().getRGB() != otherCarCar.getBodyColor().getRGB())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (car instanceof EntityTank tank && otherCarCar instanceof EntityTank otherTank)
|
||||
{
|
||||
if (tank.getDopColor() != otherTank.getDopColor())
|
||||
if (tank.getDopColor().getRGB() != otherTank.getDopColor().getRGB())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user