when im coming into the landing they will tell me a final heading of like 290 and the heading of the airport is like 310
Do you mean the runway heading is 310, or the heading from your position to the airport is 310?
Does the airport have two runways? 29 & 31?
Who gave you the heading for Runway 31, you (in pr-flight planning) or the tower as you made your approach?
How far out from the airport were you when the change of heading was given?
All of the above questions aside, it's worth noting that FS ATC isn't the best & can quite often have you going all over the place, sometimes I'll just ignore ATC if it goes a bit mental.
Great landing in the pictures BTW, looked fine.
TSC.