Remove FixtureId (#19280)
This commit is contained in:
@@ -114,16 +114,16 @@ public sealed class WeldableSystem : EntitySystem
|
||||
if (!TryComp<FixturesComponent>(uid, out var fixtures))
|
||||
return;
|
||||
|
||||
foreach (var fixture in fixtures.Fixtures.Values)
|
||||
foreach (var (id, fixture) in fixtures.Fixtures)
|
||||
{
|
||||
switch (args.IsWelded)
|
||||
{
|
||||
case true when fixture.CollisionLayer == (int) component.UnWeldedLayer:
|
||||
_physics.SetCollisionLayer(uid, fixture, (int) component.WeldedLayer);
|
||||
_physics.SetCollisionLayer(uid, id, fixture, (int) component.WeldedLayer);
|
||||
break;
|
||||
|
||||
case false when fixture.CollisionLayer == (int) component.WeldedLayer:
|
||||
_physics.SetCollisionLayer(uid, fixture, (int) component.UnWeldedLayer);
|
||||
_physics.SetCollisionLayer(uid, id, fixture, (int) component.UnWeldedLayer);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user