Fix mech double interactions (#14672)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user