Fixes singularity collision and consume range (#13424)
Co-authored-by: keronshb <keronshb@live.com>
This commit is contained in:
@@ -41,9 +41,9 @@ public sealed class ContainmentFieldSystem : EntitySystem
|
||||
}
|
||||
}
|
||||
|
||||
private void HandleEventHorizon(EntityUid uid, ContainmentFieldComponent component, EventHorizonAttemptConsumeEntityEvent args)
|
||||
private void HandleEventHorizon(EntityUid uid, ContainmentFieldComponent component, ref EventHorizonAttemptConsumeEntityEvent args)
|
||||
{
|
||||
if(!args.Cancelled && !args.EventHorizon.CanBreachContainment)
|
||||
args.Cancel();
|
||||
args.Cancelled = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user