fix (#375)
This commit is contained in:
@@ -437,6 +437,9 @@ public abstract partial class SharedBuckleSystem
|
||||
if (HasComp<SleepingComponent>(buckleUid) && buckleUid == userUid)
|
||||
return false;
|
||||
|
||||
if (ActionBlocker.CanInteract(userUid, buckleUid) == false)
|
||||
return false;
|
||||
|
||||
// If the strap is a vehicle and the rider is not the person unbuckling, return. Unless the rider is crit or dead.
|
||||
if (TryComp<VehicleComponent>(strapUid, out var vehicle) && vehicle.Rider != userUid && !_mobState.IsIncapacitated(buckleUid))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user