Reduce MaxBuckleDistance (#5938)

This commit is contained in:
metalgearsloth
2021-12-29 23:14:21 +11:00
committed by GitHub
parent 45bfc0b96b
commit 39e42899ca
5 changed files with 2 additions and 33 deletions

View File

@@ -133,7 +133,7 @@ namespace Content.Server.Buckle.Components
break;
}
ownTransform.LocalPosition = Vector2.Zero + strap.BuckleOffset;
ownTransform.LocalPosition = strap.BuckleOffset;
}
public bool CanBuckle(EntityUid user, EntityUid to, [NotNullWhen(true)] out StrapComponent? strap)
@@ -410,22 +410,5 @@ namespace Content.Server.Buckle.Components
return new BuckleComponentState(Buckled, drawDepth, LastEntityBuckledTo, DontCollide);
}
public void Update(PhysicsComponent physics)
{
if (!DontCollide)
return;
physics.WakeBody();
if (!IsOnStrapEntityThisFrame && DontCollide)
{
DontCollide = false;
TryUnbuckle(Owner);
Dirty();
}
IsOnStrapEntityThisFrame = false;
}
}
}