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

Commit 67c97b9

Browse files
committed
Fix crash with ownership in concealment
1 parent 18f7f42 commit 67c97b9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
//195
1+
//197
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.6.195")]
10-
[assembly: AssemblyVersion("1.13.6.195")]
9+
[assembly: AssemblyFileVersion("1.13.6.197")]
10+
[assembly: AssemblyVersion("1.13.6.197")]

EssentialsPlugin/EntityManagers/EntityManagement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ private static void ConcealEntity( MyEntity entity )
249249
try
250250
{
251251
pos = 1;
252-
long ownerId = ((MyCubeGrid)entity).BigOwners.First();
252+
long ownerId = ((MyCubeGrid)entity).BigOwners.FirstOrDefault();
253253
string ownerName = PlayerMap.Instance.GetPlayerNameFromPlayerId( ownerId );
254254

255255
if ( PluginSettings.Instance.DynamicShowMessages )

0 commit comments

Comments
 (0)