Fix the pathfinding leak (#1647)
Off-grid entities were continually expanding the graph indefinitely which is... bad. Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Interfaces.GameObjects;
|
||||
|
||||
namespace Content.Server.GameObjects.Components.Access
|
||||
{
|
||||
public sealed class AccessReaderChangeMessage : EntitySystemMessage
|
||||
{
|
||||
public EntityUid Uid { get; }
|
||||
public IEntity Sender { get; }
|
||||
|
||||
public bool Enabled { get; }
|
||||
|
||||
public AccessReaderChangeMessage(EntityUid uid, bool enabled)
|
||||
public AccessReaderChangeMessage(IEntity entity, bool enabled)
|
||||
{
|
||||
Uid = uid;
|
||||
Sender = entity;
|
||||
Enabled = enabled;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user