Исправление

This commit is contained in:
111 2022-12-06 15:36:03 +04:00 committed by prodigygirl
parent e9261e6b51
commit a0e946e6c2

View File

@ -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;
}