Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Commit aaa4263

Browse files
committed
Fixed /admin reveal, fixed DynamicConcealProduction actually toggline DynamicConcealIncludeMedbays
1 parent 9551a33 commit aaa4263

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
//14
1+
//21
22
//
33
// This code was generated by a tool. Any changes made manually will be lost
44
// the next time this code is regenerated.
55
//
66

77
using System.Reflection;
88

9-
[assembly: AssemblyFileVersion("1.13.7.14")]
10-
[assembly: AssemblyVersion("1.13.7.14")]
9+
[assembly: AssemblyFileVersion("1.13.7.21")]
10+
[assembly: AssemblyVersion("1.13.7.21")]

EssentialsPlugin/EntityManagers/EntityManagement.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,9 +571,16 @@ static public void RevealAll( )
571571

572572
CheckAndRevealEntitiesObsolete();
573573

574-
foreach ( var entity in UnregisteredEntities.ToArray() )
574+
HashSet<MyEntity> entities = new HashSet<MyEntity>();
575+
Wrapper.GameAction( ()=>entities = MyEntities.GetEntities() );
576+
577+
foreach ( var entity in entities )
575578
{
576-
if (PluginSettings.Instance.DynamicShowMessages)
579+
var grid = entity as MyCubeGrid;
580+
if ( grid == null )
581+
continue;
582+
583+
if (PluginSettings.Instance.DynamicShowMessages && UnregisteredEntities.Contains( entity ))
577584
Essentials.Log.Info("Revealed - Id: {0} -> Display: {1} OwnerId: {2} OwnerName: {3} Reason: {4}",
578585
entity.EntityId,
579586
entity.DisplayName.Replace("\r", "").Replace("\n", ""),
@@ -584,6 +591,7 @@ static public void RevealAll( )
584591
Wrapper.GameAction( () => ReregisterHierarchy( entity ) );
585592
}
586593

594+
UnregisteredEntities.Clear();
587595
_checkReveal = false;
588596
}
589597

EssentialsPlugin/Essentials.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,8 @@ public bool DynamicConcealIncludeMedBays
729729
[ReadOnly(false)]
730730
public bool DynamicConcealProduction
731731
{
732-
get { return PluginSettings.Instance.DynamicConcealIncludeMedBays; }
733-
set { PluginSettings.Instance.DynamicConcealIncludeMedBays = value; }
732+
get { return PluginSettings.Instance.DynamicConcealProduction; }
733+
set { PluginSettings.Instance.DynamicConcealProduction = value; }
734734
}
735735

736736
[Category( "Dynamic Entity Management" )]

0 commit comments

Comments
 (0)