Add EntityUid fields to some physics events (#17055)

This commit is contained in:
Leon Friedrich
2023-06-03 00:20:09 +12:00
committed by GitHub
parent 82575f6d4a
commit 7a424e40fd
9 changed files with 9 additions and 11 deletions

View File

@@ -181,7 +181,7 @@ public abstract class SharedEventHorizonSystem : EntitySystem
/// <returns>A bool indicating whether the collision prevention has been handled.</returns>
protected virtual bool PreventCollide(EntityUid uid, EventHorizonComponent comp, ref PreventCollideEvent args)
{
var otherUid = args.BodyB.Owner;
var otherUid = args.OtherEntity;
// For prediction reasons always want the client to ignore these.
if (HasComp<MapGridComponent>(otherUid) ||