фиксы под тесты ура

This commit is contained in:
Remuchi
2024-04-10 09:57:42 +07:00
parent 2ccac6de35
commit a61ace4a9a
35 changed files with 104 additions and 219 deletions

View File

@@ -31,7 +31,7 @@ public sealed partial class KeyholeSystem : EntitySystem
private void OnKeyInit(EntityUid uid, KeyComponent component, ComponentInit ev)
{
component.FormId = _random.Next(1000);
component.FormId ??= _random.Next(1000);
}
private void OnKeyInsert(EntityUid uid, KeyComponent component, AfterInteractEvent ev)
@@ -40,7 +40,7 @@ public sealed partial class KeyholeSystem : EntitySystem
{
return;
}
if (TryComp<KeyformComponent>(ev.Target, out var keyformComponent))
OnKeyInsertForm(uid, component, keyformComponent, ev);