fix: Fixes doors as decorations & optimizes them (#1392)

This commit is contained in:
Kamron Batman 2023-04-18 19:28:54 -07:00 • committed by GitHub
parent 6c09e5a006
commit 79c6f0375c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 1369 additions and 1578 deletions

View file

@ -58,7 +58,7 @@ namespace Server.Engines.Doom
healerDoor.Locked = true;
healerDoor.KeyValue = Key.RandomValue();
if (healerDoor.Link != null)
if (healerDoor.Link?.Deleted == false)
{
healerDoor.Link.Locked = true;
healerDoor.Link.KeyValue = Key.RandomValue();