Fix object

This commit is contained in:
Кашин Максим 2022-12-01 23:53:48 +04:00
parent d83fc2dc2b
commit c3d2d0bd4b

View File

@ -57,10 +57,10 @@ namespace GasolineTanker
return false; return false;
} }
if (entity is EntityImprovedGasolineTanker entityImprovedGasolineTanker && if (entity is EntityImprovedGasolineTanker entityImprovedGasolineTanker &&
otherEntity is EntityImprovedGasolineTanker otherEntityWarmlyShip && ( otherEntity is EntityImprovedGasolineTanker otherEntityWarmlyGasolineTanker && (
entityImprovedGasolineTanker.BodyColor != otherEntityWarmlyShip.BodyColor || entityImprovedGasolineTanker.BodyColor != otherEntityWarmlyGasolineTanker.BodyColor ||
entityImprovedGasolineTanker.DopColor != otherEntityWarmlyShip.DopColor || entityImprovedGasolineTanker.DopColor != otherEntityWarmlyGasolineTanker.DopColor ||
entityImprovedGasolineTanker.BodyKit != otherEntityWarmlyShip.BodyKit)) entityImprovedGasolineTanker.BodyKit != otherEntityWarmlyGasolineTanker.BodyKit))
{ {
return false; return false;
} }