adds check to for player being on ship

thanks to _EB_ for reporting and providing a patch!