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