예제 #1
0
 void VesselWasModified(Vessel vessel)
 {
     if (vessel.isActiveVessel)
     {
         cacheManager.setSchedule(config.minCacheUpdateInterval);
     }
 }
예제 #2
0
 void VesselWasModified(Vessel vessel)
 {
     // null check here - somehow this occasionally is null?
     if (vessel != null && vessel.isActiveVessel)
     {
         cacheManager.setSchedule(config.MinCacheUpdateInterval);
     }
 }