Fix a bunch of warnings (#10886)
* Fix a bunch of warnings Also made ensnareable not broadcast as they're only used directed. Mainly just Get<T> and AppearanceSystem * buckle too * fix tests Co-authored-by: wrexbe <wrexbe@protonmail.com>
This commit is contained in:
@@ -53,6 +53,7 @@ namespace Content.IntegrationTests.Tests.Doors
|
||||
|
||||
var mapManager = server.ResolveDependency<IMapManager>();
|
||||
var entityManager = server.ResolveDependency<IEntityManager>();
|
||||
var doors = entityManager.EntitySysManager.GetEntitySystem<DoorSystem>();
|
||||
|
||||
EntityUid airlock = default;
|
||||
DoorComponent doorComponent = null;
|
||||
@@ -71,7 +72,7 @@ namespace Content.IntegrationTests.Tests.Doors
|
||||
|
||||
await server.WaitAssertion(() =>
|
||||
{
|
||||
EntitySystem.Get<DoorSystem>().StartOpening(airlock);
|
||||
doors.StartOpening(airlock);
|
||||
Assert.That(doorComponent.State, Is.EqualTo(DoorState.Opening));
|
||||
});
|
||||
|
||||
@@ -83,7 +84,7 @@ namespace Content.IntegrationTests.Tests.Doors
|
||||
|
||||
await server.WaitAssertion(() =>
|
||||
{
|
||||
EntitySystem.Get<DoorSystem>().TryClose((EntityUid) airlock);
|
||||
doors.TryClose(airlock);
|
||||
Assert.That(doorComponent.State, Is.EqualTo(DoorState.Closing));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user