Remove obsolete Fixture.Body references (#16259)
This commit is contained in:
@@ -59,7 +59,7 @@ public abstract class SharedPortalSystem : EntitySystem
|
||||
if (!ShouldCollide(args.OurFixture, args.OtherFixture))
|
||||
return;
|
||||
|
||||
var subject = args.OtherFixture.Body.Owner;
|
||||
var subject = args.OtherEntity;
|
||||
|
||||
// best not.
|
||||
if (Transform(subject).Anchored)
|
||||
@@ -127,7 +127,7 @@ public abstract class SharedPortalSystem : EntitySystem
|
||||
if (!ShouldCollide(args.OurFixture, args.OtherFixture))
|
||||
return;
|
||||
|
||||
var subject = args.OtherFixture.Body.Owner;
|
||||
var subject = args.OtherEntity;
|
||||
|
||||
// if they came from (not us), remove the timeout
|
||||
if (TryComp<PortalTimeoutComponent>(subject, out var timeout) && timeout.EnteredPortal != uid)
|
||||
|
||||
Reference in New Issue
Block a user