@@ -156,22 +156,22 @@ private static void InternalLoadPlanetsRequestGenerator(IEnumerable<PlanetData>
156156 }
157157
158158 [ HarmonyPrefix ]
159- [ HarmonyPatch ( nameof ( PlanetModelingManager . RequestCalcPlanet ) ) ]
160- public static bool RequestCalcPlanet_Prefix ( PlanetData planet )
159+ [ HarmonyPatch ( nameof ( PlanetModelingManager . RequestScanPlanet ) ) ]
160+ public static bool RequestScanPlanet_Prefix ( PlanetData planet )
161161 {
162162 // Run the original method if this is the master client or in single player games
163163 if ( ! Multiplayer . IsActive || Multiplayer . Session . LocalPlayer . IsHost )
164164 {
165165 return true ;
166166 }
167167
168- RequestCalcPlanet ( planet ) ;
168+ RequestScanPlanet ( planet ) ;
169169 return false ;
170170 }
171171
172172 [ HarmonyPrefix ]
173- [ HarmonyPatch ( nameof ( PlanetModelingManager . RequestCalcStar ) ) ]
174- public static bool RequestCalcStar_Prefix ( StarData star )
173+ [ HarmonyPatch ( nameof ( PlanetModelingManager . RequestScanStar ) ) ]
174+ public static bool RequestScanStar_Prefix ( StarData star )
175175 {
176176 // Run the original method if this is the master client or in single player games
177177 if ( ! Multiplayer . IsActive || Multiplayer . Session . LocalPlayer . IsHost )
@@ -181,22 +181,22 @@ public static bool RequestCalcStar_Prefix(StarData star)
181181
182182 foreach ( var planet in star . planets )
183183 {
184- RequestCalcPlanet ( planet ) ;
184+ RequestScanPlanet ( planet ) ;
185185 }
186186 return false ;
187187 }
188188
189- private static void RequestCalcPlanet ( PlanetData planet )
189+ private static void RequestScanPlanet ( PlanetData planet )
190190 {
191- if ( planet . calculated || planet . calculating || planet . data != null )
191+ if ( planet . scanned || planet . scanning || planet . data != null )
192192 {
193193 return ;
194194 }
195195 if ( planet . loaded || planet . loading )
196196 {
197197 return ;
198198 }
199- planet . calculating = true ;
199+ planet . scanning = true ;
200200 Multiplayer . Session . Network . SendPacket ( new PlanetDetailRequest ( planet . id ) ) ;
201201 }
202202}
0 commit comments