From 67c97b90bb4f022c97a5b69b290032f03a830ff2 Mon Sep 17 00:00:00 2001 From: Brant Martin Date: Sat, 28 May 2016 23:00:34 -0400 Subject: [PATCH] Fix crash with ownership in concealment --- EssentialsPlugin/AssemblyFileVersion.cs | 6 +++--- EssentialsPlugin/EntityManagers/EntityManagement.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/EssentialsPlugin/AssemblyFileVersion.cs b/EssentialsPlugin/AssemblyFileVersion.cs index 559f38e..312c193 100644 --- a/EssentialsPlugin/AssemblyFileVersion.cs +++ b/EssentialsPlugin/AssemblyFileVersion.cs @@ -1,4 +1,4 @@ -//195 +//197 // // This code was generated by a tool. Any changes made manually will be lost // the next time this code is regenerated. @@ -6,5 +6,5 @@ using System.Reflection; -[assembly: AssemblyFileVersion("1.13.6.195")] -[assembly: AssemblyVersion("1.13.6.195")] +[assembly: AssemblyFileVersion("1.13.6.197")] +[assembly: AssemblyVersion("1.13.6.197")] diff --git a/EssentialsPlugin/EntityManagers/EntityManagement.cs b/EssentialsPlugin/EntityManagers/EntityManagement.cs index 7f0d484..9c9140a 100644 --- a/EssentialsPlugin/EntityManagers/EntityManagement.cs +++ b/EssentialsPlugin/EntityManagers/EntityManagement.cs @@ -249,7 +249,7 @@ private static void ConcealEntity( MyEntity entity ) try { pos = 1; - long ownerId = ((MyCubeGrid)entity).BigOwners.First(); + long ownerId = ((MyCubeGrid)entity).BigOwners.FirstOrDefault(); string ownerName = PlayerMap.Instance.GetPlayerNameFromPlayerId( ownerId ); if ( PluginSettings.Instance.DynamicShowMessages )