diff --git a/Content.Server/Explosion/EntitySystems/TriggerSystem.Proximity.cs b/Content.Server/Explosion/EntitySystems/TriggerSystem.Proximity.cs index b1ed7eed33..f25c237a3a 100644 --- a/Content.Server/Explosion/EntitySystems/TriggerSystem.Proximity.cs +++ b/Content.Server/Explosion/EntitySystems/TriggerSystem.Proximity.cs @@ -19,7 +19,7 @@ public sealed partial class TriggerSystem { SubscribeLocalEvent(OnProximityStartCollide); SubscribeLocalEvent(OnProximityEndCollide); - SubscribeLocalEvent(OnProximityStartup); + SubscribeLocalEvent(OnMapInit); SubscribeLocalEvent(OnProximityShutdown); SubscribeLocalEvent(OnProximityAnchor); } @@ -49,7 +49,7 @@ public sealed partial class TriggerSystem component.Colliding.Clear(); } - private void OnProximityStartup(EntityUid uid, TriggerOnProximityComponent component, ComponentStartup args) + private void OnMapInit(EntityUid uid, TriggerOnProximityComponent component, MapInitEvent args) { component.Enabled = !component.RequiresAnchored || EntityManager.GetComponent(uid).Anchored; @@ -58,7 +58,7 @@ public sealed partial class TriggerSystem if (!TryComp(uid, out var body)) return; - _fixtures.CreateFixture(body, new Fixture(body, component.Shape) + _fixtures.TryCreateFixture(body, new Fixture(body, component.Shape) { // TODO: Should probably have these settable via datafield but I'm lazy and it's a pain CollisionLayer = (int) (CollisionGroup.MobImpassable | CollisionGroup.SmallImpassable | CollisionGroup.VaultImpassable), Hard = false, ID = TriggerOnProximityComponent.FixtureID diff --git a/Content.Server/Shuttles/EntitySystems/DockingSystem.cs b/Content.Server/Shuttles/EntitySystems/DockingSystem.cs index aa891cad21..4df50626a4 100644 --- a/Content.Server/Shuttles/EntitySystems/DockingSystem.cs +++ b/Content.Server/Shuttles/EntitySystems/DockingSystem.cs @@ -317,7 +317,7 @@ namespace Content.Server.Shuttles.EntitySystems // TODO: I want this to ideally be 2 fixtures to force them to have some level of alignment buuuttt // I also need collisionmanager for that yet again so they get dis. - _fixtureSystem.CreateFixture(physicsComponent, fixture); + _fixtureSystem.TryCreateFixture(physicsComponent, fixture); } /// diff --git a/Content.Server/Shuttles/EntitySystems/ThrusterSystem.cs b/Content.Server/Shuttles/EntitySystems/ThrusterSystem.cs index 4f62cef87c..b6ed94a53a 100644 --- a/Content.Server/Shuttles/EntitySystems/ThrusterSystem.cs +++ b/Content.Server/Shuttles/EntitySystems/ThrusterSystem.cs @@ -266,7 +266,7 @@ namespace Content.Server.Shuttles.EntitySystems CollisionLayer = (int) CollisionGroup.MobImpassable }; - _fixtureSystem.CreateFixture(physicsComponent, fixture); + _fixtureSystem.TryCreateFixture(physicsComponent, fixture); } break; diff --git a/Content.Server/Storage/Components/EntityStorageComponent.cs b/Content.Server/Storage/Components/EntityStorageComponent.cs index bee8ec4a0e..b67e1dddba 100644 --- a/Content.Server/Storage/Components/EntityStorageComponent.cs +++ b/Content.Server/Storage/Components/EntityStorageComponent.cs @@ -164,7 +164,7 @@ namespace Content.Server.Storage.Components Contents.OccludesLight = _occludesLight; if(_entMan.TryGetComponent(Owner, out ConstructionComponent? construction)) - EntitySystem.Get().AddContainer(Owner, Contents.ID, construction); + EntitySystem.Get().AddContainer(Owner, nameof(EntityStorageComponent), construction); if (_entMan.TryGetComponent(Owner, out var surface)) { diff --git a/Content.Shared/Throwing/ThrownItemSystem.cs b/Content.Shared/Throwing/ThrownItemSystem.cs index 1788298994..12823c9fa6 100644 --- a/Content.Shared/Throwing/ThrownItemSystem.cs +++ b/Content.Shared/Throwing/ThrownItemSystem.cs @@ -67,7 +67,7 @@ namespace Content.Shared.Throwing var fixture = fixturesComponent.Fixtures.Values.First(); var shape = fixture.Shape; var throwingFixture = new Fixture(physicsComponent, shape) { CollisionLayer = (int) CollisionGroup.ThrownItem, Hard = false, ID = ThrowingFixture }; - _fixtures.CreateFixture(physicsComponent, throwingFixture, manager: fixturesComponent); + _fixtures.TryCreateFixture(physicsComponent, throwingFixture, manager: fixturesComponent); } private void HandleCollision(EntityUid uid, ThrownItemComponent component, StartCollideEvent args)