Skip to content

Commit

Permalink
Update AtlasVehicleFactory.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDutchDev committed Nov 27, 2023
1 parent 6511756 commit 82ccd3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Factories/AtlasVehicleFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public async Task<T> CreateVehicleAsync<T>( uint model, Position position, Rotat
{
var altVeh = await AltAsync.CreateVehicle( model, position, rotation );
var actualVeh = ActivatorUtilities.CreateInstance<T>( _serviceProvider, altVeh.Core, altVeh.NativePointer, altVeh.Id );
Alt.Core.PoolManager.Vehicle.Add( actualVeh );
Alt.Core.PoolManager.Vehicle.Add( actualVeh ); // Thanks zziger <3
return actualVeh;
}

Expand Down

0 comments on commit 82ccd3b

Please sign in to comment.