add catch code for previous commit :(
This commit is contained in:
@@ -1233,9 +1233,9 @@ namespace Barotrauma.Networking
|
||||
}
|
||||
}
|
||||
}
|
||||
finally
|
||||
catch
|
||||
{
|
||||
errorLines.Add("Catch event snapshot failed.");
|
||||
errorLines.Add("Failed to write EntitySpawner events.");
|
||||
}
|
||||
|
||||
errorLines.Add("");
|
||||
|
||||
@@ -293,6 +293,10 @@ namespace Barotrauma
|
||||
GameMain.Server.EntityEventManager.Events.RemoveAll(ev => ev.Entity == item);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
GameServer.Log("Try making UniqueEvents snapshot failed", ServerLog.MessageType.Warning);
|
||||
}
|
||||
finally
|
||||
{
|
||||
Entity.Spawner.CreateNetworkEvent(new EntitySpawner.SpawnEntity(item));
|
||||
|
||||
@@ -181,6 +181,10 @@ namespace Barotrauma
|
||||
GameMain.Server.EntityEventManager.Events.RemoveAll(ev => ev.Entity == item);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
GameServer.Log("Try making UniqueEvents snapshot failed", ServerLog.MessageType.Warning);
|
||||
}
|
||||
finally
|
||||
{
|
||||
Entity.Spawner.CreateNetworkEvent(new EntitySpawner.SpawnEntity(item));
|
||||
|
||||
Reference in New Issue
Block a user