Fix mech double interactions (#14672)

This commit is contained in:
Leon Friedrich
2023-03-24 14:42:43 +13:00
committed by GitHub
parent b960bc7636
commit 07667ae34b
4 changed files with 12 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ public sealed class MechSystem : SharedMechSystem
Priority = 1, // Promote to top to make ejecting the ALT-click action
Act = () =>
{
if (args.User == component.PilotSlot.ContainedEntity)
if (args.User == uid || args.User == component.PilotSlot.ContainedEntity)
{
TryEject(uid, component);
return;