Fix door access in mapping mode (#30030)
Fix shouldn't break anythingTM.
This commit is contained in:
@@ -155,7 +155,12 @@ public sealed class AccessReaderSystem : EntitySystem
|
||||
return IsAllowedInternal(access, stationKeys, reader);
|
||||
|
||||
if (!_containerSystem.TryGetContainer(target, reader.ContainerAccessProvider, out var container))
|
||||
return Paused(target); // when mapping, containers with electronics arent spawned
|
||||
return false;
|
||||
|
||||
// If entity is paused then always allow it at this point.
|
||||
// Door electronics is kind of a mess but yeah, it should only be an unpaused ent interacting with it
|
||||
if (Paused(target))
|
||||
return true;
|
||||
|
||||
foreach (var entity in container.ContainedEntities)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user