Fix SpawnAndDeleteAllEntitiesInTheSameSpot heisentest (#32330)
What happened was that the new tech anomaly randomly triggered a signal sink on the portable generator, which is currently broken and throws an error if the that sink is activated. The resolve needed logMissing = false because it does not expect the ActiveGeneratorRevvingComponent to exist.
This commit is contained in:
@@ -3,7 +3,7 @@ using Robust.Shared.GameStates;
|
|||||||
namespace Content.Shared.Power.Generator;
|
namespace Content.Shared.Power.Generator;
|
||||||
|
|
||||||
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
||||||
public sealed partial class ActiveGeneratorRevvingComponent: Component
|
public sealed partial class ActiveGeneratorRevvingComponent : Component
|
||||||
{
|
{
|
||||||
[DataField, ViewVariables(VVAccess.ReadOnly), AutoNetworkedField]
|
[DataField, ViewVariables(VVAccess.ReadOnly), AutoNetworkedField]
|
||||||
public TimeSpan CurrentTime = TimeSpan.Zero;
|
public TimeSpan CurrentTime = TimeSpan.Zero;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
namespace Content.Shared.Power.Generator;
|
namespace Content.Shared.Power.Generator;
|
||||||
|
|
||||||
public sealed class ActiveGeneratorRevvingSystem: EntitySystem
|
public sealed class ActiveGeneratorRevvingSystem : EntitySystem
|
||||||
{
|
{
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
@@ -25,7 +25,7 @@ public sealed class ActiveGeneratorRevvingSystem: EntitySystem
|
|||||||
/// <param name="component">ActiveGeneratorRevvingComponent of the generator entity.</param>
|
/// <param name="component">ActiveGeneratorRevvingComponent of the generator entity.</param>
|
||||||
public void StartAutoRevving(EntityUid uid, ActiveGeneratorRevvingComponent? component = null)
|
public void StartAutoRevving(EntityUid uid, ActiveGeneratorRevvingComponent? component = null)
|
||||||
{
|
{
|
||||||
if (Resolve(uid, ref component))
|
if (Resolve(uid, ref component, false))
|
||||||
{
|
{
|
||||||
// reset the revving
|
// reset the revving
|
||||||
component.CurrentTime = TimeSpan.FromSeconds(0);
|
component.CurrentTime = TimeSpan.FromSeconds(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user