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

Commit

Permalink
Fixed /admin reveal, fixed DynamicConcealProduction actually toggline…
Browse files Browse the repository at this point in the history
… DynamicConcealIncludeMedbays
  • Loading branch information
rexxar-tc committed Jun 16, 2016
1 parent 9551a33 commit aaa4263
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
6 changes: 3 additions & 3 deletions EssentialsPlugin/AssemblyFileVersion.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//14
//21
//
// This code was generated by a tool. Any changes made manually will be lost
// the next time this code is regenerated.
//

using System.Reflection;

[assembly: AssemblyFileVersion("1.13.7.14")]
[assembly: AssemblyVersion("1.13.7.14")]
[assembly: AssemblyFileVersion("1.13.7.21")]
[assembly: AssemblyVersion("1.13.7.21")]
12 changes: 10 additions & 2 deletions EssentialsPlugin/EntityManagers/EntityManagement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,16 @@ static public void RevealAll( )

CheckAndRevealEntitiesObsolete();

foreach ( var entity in UnregisteredEntities.ToArray() )
HashSet<MyEntity> entities = new HashSet<MyEntity>();
Wrapper.GameAction( ()=>entities = MyEntities.GetEntities() );

foreach ( var entity in entities )
{
if (PluginSettings.Instance.DynamicShowMessages)
var grid = entity as MyCubeGrid;
if ( grid == null )
continue;

if (PluginSettings.Instance.DynamicShowMessages && UnregisteredEntities.Contains( entity ))
Essentials.Log.Info("Revealed - Id: {0} -> Display: {1} OwnerId: {2} OwnerName: {3} Reason: {4}",
entity.EntityId,
entity.DisplayName.Replace("\r", "").Replace("\n", ""),
Expand All @@ -584,6 +591,7 @@ static public void RevealAll( )
Wrapper.GameAction( () => ReregisterHierarchy( entity ) );
}

UnregisteredEntities.Clear();
_checkReveal = false;
}

Expand Down
4 changes: 2 additions & 2 deletions EssentialsPlugin/Essentials.cs
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,8 @@ public bool DynamicConcealIncludeMedBays
[ReadOnly(false)]
public bool DynamicConcealProduction
{
get { return PluginSettings.Instance.DynamicConcealIncludeMedBays; }
set { PluginSettings.Instance.DynamicConcealIncludeMedBays = value; }
get { return PluginSettings.Instance.DynamicConcealProduction; }
set { PluginSettings.Instance.DynamicConcealProduction = value; }
}

[Category( "Dynamic Entity Management" )]
Expand Down

0 comments on commit aaa4263

Please sign in to comment.