Fix some buckling bugs (#10759)

This commit is contained in:
Leon Friedrich
2022-08-22 12:44:37 +12:00
committed by GitHub
parent eb7804989d
commit ff37e69c0a
2 changed files with 26 additions and 0 deletions

View File

@@ -85,6 +85,9 @@ namespace Content.Server.Buckle.Systems
private void ContainerModifiedStrap(EntityUid uid, StrapComponent strap, ContainerModifiedMessage message)
{
if (GameTiming.ApplyingState)
return;
foreach (var buckledEntity in strap.BuckledEntities)
{
if (!EntityManager.TryGetComponent(buckledEntity, out BuckleComponent? buckled))