Add PreventFTLComponent and changed FTL check (#34077)
* Add PreventFTLComponent and changed FTL check * Remove component body. --------- Co-authored-by: Milon <milonpl.git@proton.me>
This commit is contained in:
@@ -243,7 +243,7 @@ public sealed partial class ShuttleSystem
|
||||
}
|
||||
}
|
||||
|
||||
if (HasComp<PreventPilotComponent>(shuttleUid))
|
||||
if (HasComp<PreventPilotComponent>(shuttleUid) || HasComp<PreventFTLComponent>(shuttleUid))
|
||||
{
|
||||
reason = Loc.GetString("shuttle-console-prevent");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user