Skip to content

Commit

Permalink
fix SpawnAndDeleteAllEntitiesInTheSameSpot heisentest
Browse files Browse the repository at this point in the history
  • Loading branch information
slarticodefast committed Sep 20, 2024
1 parent c4d12df commit 364a5ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Content.Shared.Power.Generator;

[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class ActiveGeneratorRevvingComponent: Component
public sealed partial class ActiveGeneratorRevvingComponent : Component
{
[DataField, ViewVariables(VVAccess.ReadOnly), AutoNetworkedField]
[DataField, AutoNetworkedField]
public TimeSpan CurrentTime = TimeSpan.Zero;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Content.Shared.Power.Generator;

public sealed class ActiveGeneratorRevvingSystem: EntitySystem
public sealed class ActiveGeneratorRevvingSystem : EntitySystem
{
public override void Initialize()
{
Expand All @@ -25,7 +25,7 @@ private void OnAnchorStateChanged(EntityUid uid, ActiveGeneratorRevvingComponent
/// <param name="component">ActiveGeneratorRevvingComponent of the generator entity.</param>
public void StartAutoRevving(EntityUid uid, ActiveGeneratorRevvingComponent? component = null)
{
if (Resolve(uid, ref component))
if (Resolve(uid, ref component, false))
{
// reset the revving
component.CurrentTime = TimeSpan.FromSeconds(0);
Expand Down

0 comments on commit 364a5ca

Please sign in to comment.