fixed bug with similar objects checking
This commit is contained in:
parent
e603c06444
commit
cf3fbd9e96
@ -59,17 +59,24 @@ namespace Boats
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (boat is EntityCatamaran catamaran && otherBoatBoat is EntityCatamaran otherCatamaran)
|
||||
if (boat is EntityCatamaran catamaran)
|
||||
{
|
||||
if (catamaran.Sail != otherCatamaran.Sail)
|
||||
if (otherBoatBoat is EntityCatamaran otherCatamaran)
|
||||
{
|
||||
return false;
|
||||
if (catamaran.Sail != otherCatamaran.Sail)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (catamaran.Bobbers != otherCatamaran.Bobbers)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (catamaran.DopColor != otherCatamaran.DopColor)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (catamaran.Bobbers != otherCatamaran.Bobbers)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (catamaran.DopColor != otherCatamaran.DopColor)
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user