@@ -36,7 +36,7 @@ You should have received a copy of the GNU General Public License
36
36
using System . Collections . Generic ;
37
37
using System . Text ;
38
38
39
- [ assembly: MelonInfo ( typeof ( RepairFacility ) , "Repair Facility" , "1.0.1 " , "databomb" , "https://github.com/data-bomb/Silica" ) ]
39
+ [ assembly: MelonInfo ( typeof ( RepairFacility ) , "Repair Facility" , "1.0.2 " , "databomb" , "https://github.com/data-bomb/Silica" ) ]
40
40
[ assembly: MelonGame ( "Bohemia Interactive" , "Silica" ) ]
41
41
[ assembly: MelonOptionalDependencies ( "Admin Mod" ) ]
42
42
@@ -174,21 +174,26 @@ public static void Postfix(OpenableBase __instance, Zone __0, Unit __1)
174
174
return ;
175
175
}
176
176
177
- // is the unit a player-controlled vehicle?
178
- if ( __1 . DriverCompartment == null || __1 . NetworkComponent == null || __1 . ControlledBy == null )
179
- {
180
- return ;
181
- }
182
-
183
177
// there are two openablebases in a LightVehicleFactory:
184
178
// HousingUnit07_MainDoor and LVF_EntryDoor_Part01
185
179
if ( ! __instance . NetworkComponent . ToString ( ) . StartsWith ( "LightVehicleF" ) )
186
180
{
187
181
return ;
188
182
}
189
183
190
- MelonLogger . Msg ( "Found player's vehicle exiting LVF repair zone: " + __1 . ControlledBy . PlayerName + " with vehicle " + __1 . ToString ( ) ) ;
191
-
184
+ // is the unit a player-controlled vehicle?
185
+ if ( __1 . DriverCompartment == null || __1 . NetworkComponent == null || __1 . ControlledBy == null )
186
+ {
187
+ if ( vehiclesAtRepairShop . Contains ( __1 . DamageManager ) )
188
+ {
189
+ MelonLogger . Msg ( "Found vehicle exiting LVF repair zone: " + __1 . ToString ( ) ) ;
190
+ }
191
+ }
192
+ else
193
+ {
194
+ MelonLogger . Msg ( "Found player's vehicle exiting LVF repair zone: " + __1 . ControlledBy . PlayerName + " with vehicle " + __1 . ToString ( ) ) ;
195
+ }
196
+
192
197
vehiclesAtRepairShop . RemoveAll ( vehicleDM => vehicleDM == __1 . DamageManager ) ;
193
198
}
194
199
catch ( Exception error )
0 commit comments