Merge remote-tracking branch 'upstream/master' into ed-28-07-2024-upstream

# Conflicts:
#	Resources/Prototypes/Maps/core.yml
#	Resources/Prototypes/Maps/train.yml
#	Resources/Prototypes/Traits/categories.yml
#	Resources/Prototypes/Traits/disabilities.yml
This commit is contained in:
Ed
2024-07-28 20:58:48 +03:00
302 changed files with 7542 additions and 4673 deletions

View File

@@ -259,7 +259,12 @@ public sealed class LockSystem : EntitySystem
var ev = new LockToggleAttemptEvent(user, quiet);
RaiseLocalEvent(uid, ref ev, true);
return !ev.Cancelled;
if (ev.Cancelled)
return false;
var userEv = new UserLockToggleAttemptEvent(uid, quiet);
RaiseLocalEvent(user, ref userEv, true);
return !userEv.Cancelled;
}
// TODO: this should be a helper on AccessReaderSystem since so many systems copy paste it
@@ -408,4 +413,3 @@ public sealed class LockSystem : EntitySystem
_activatableUI.CloseAll(uid);
}
}