Fix integration tests nullability errors.
This commit is contained in:
parent
32c9db8db4
commit
2cb72d40c1
|
|
@ -1,3 +1,4 @@
|
|||
#nullable enable annotations
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Content.Server.Disposal.Tube.Components;
|
||||
|
|
@ -151,7 +152,7 @@ namespace Content.IntegrationTests.Tests.Disposal
|
|||
Assert.True(entityManager.HasComponent<DisposalEntryComponent>(disposalTrunk));
|
||||
|
||||
// Can't insert, unanchored and unpowered
|
||||
entityManager.GetComponent<TransformComponent>(unit.Owner).Anchored = false;
|
||||
entityManager.GetComponent<TransformComponent>(unit!.Owner).Anchored = false;
|
||||
UnitInsertContains(unit, false, human, wrench, disposalUnit, disposalTrunk);
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
#nullable enable annotations
|
||||
using System.Threading.Tasks;
|
||||
using Content.Server.Hands.Components;
|
||||
using Content.Server.Interaction;
|
||||
|
|
@ -407,9 +408,9 @@ namespace Content.IntegrationTests.Tests.Interaction.Click
|
|||
[Reflect(false)]
|
||||
private class TestInteractionSystem : EntitySystem
|
||||
{
|
||||
public ComponentEventHandler<HandsComponent, ClickAttackEvent> AttackEvent;
|
||||
public EntityEventHandler<InteractUsingEvent> InteractUsingEvent;
|
||||
public EntityEventHandler<InteractHandEvent> InteractHandEvent;
|
||||
public ComponentEventHandler<HandsComponent, ClickAttackEvent>? AttackEvent;
|
||||
public EntityEventHandler<InteractUsingEvent>? InteractUsingEvent;
|
||||
public EntityEventHandler<InteractHandEvent>? InteractHandEvent;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue