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

@@ -125,6 +125,7 @@ public abstract class SharedMechSystem : EntitySystem
if (pilot == null)
return;
// TODO why is this being blocked?
if (!_timing.IsFirstTimePredicted)
return;
@@ -165,6 +166,8 @@ public abstract class SharedMechSystem : EntitySystem
var rider = EnsureComp<MechPilotComponent>(pilot);
var relay = EnsureComp<RelayInputMoverComponent>(pilot);
// Warning: this bypasses most normal interaction blocking components on the user, like drone laws and the like.
var irelay = EnsureComp<InteractionRelayComponent>(pilot);
_mover.SetRelay(pilot, mech, relay);