fix: Fixes doors as decorations & optimizes them (#1392)
This commit is contained in:
parent
6c09e5a006
commit
79c6f0375c
38 changed files with 1369 additions and 1578 deletions
|
|
@ -121,7 +121,7 @@ namespace Server.Engines.Doom
|
|||
Door.Open = false;
|
||||
}
|
||||
|
||||
if (Door.Link != null)
|
||||
if (Door.Link?.Deleted == false)
|
||||
{
|
||||
Door.Link.Hue = hue;
|
||||
Door.Link.Locked = lockDoors;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue