Skip to content

Commit 1d2ad43

Browse files
committed
Revert better
1 parent 65f428f commit 1d2ad43

3 files changed

Lines changed: 1 addition & 29 deletions

File tree

‎Concealment/ConcealmentPlugin.cs‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ public sealed class ConcealmentPlugin : TorchPluginBase, IWpfPlugin
3838
public Persistent<Settings> Settings { get; private set; }
3939
public MtObservableList<ConcealGroup> ConcealedGroups { get; } = new MtObservableList<ConcealGroup>();
4040

41-
public const EntityFlags EXEMPT_FLAG = (EntityFlags)(1 << 31); //top of MyEntityFlags. Hopefully Keen doesn't add another dozen flags
42-
4341
private readonly Dictionary<long, Timer> _keepAliveTimers = new Dictionary<long, Timer>();
4442
private static readonly Logger Log = LogManager.GetLogger("Concealment");
4543
private UserControl _control;
@@ -348,12 +346,6 @@ public bool IsExcluded(ConcealGroup group)
348346
var pirateId = MyPirateAntennas.GetPiratesId();
349347
foreach (var grid in group.Grids)
350348
{
351-
if ((grid.Flags & EXEMPT_FLAG) == EXEMPT_FLAG)
352-
{
353-
Log.Debug($"{group.GridNames} is kept alive by mod flag");
354-
return true;
355-
}
356-
357349
if (_keepAliveTimers.ContainsKey(grid.EntityId))
358350
{
359351
Log.Debug($"{group.GridNames} is kept alive by PB action");

‎Concealment/DynamicConcealmentManager.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,4 +638,4 @@ private static Settings.DynamicConcealType GetConcealType(MyRelationsBetweenPlay
638638
}
639639
}
640640
}
641-
}
641+
}

‎Concealment/Utilities.cs‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)