(f417b026f) Fetched: Changes for playing video tutorial from local branch
This commit is contained in:
@@ -91,7 +91,8 @@ namespace Barotrauma
|
||||
|
||||
public override void CreateNetworkEvent()
|
||||
{
|
||||
if (!Item.ItemList.Contains(container.Item))
|
||||
int componentIndex = container.Item.GetComponentIndex(container);
|
||||
if (componentIndex == -1)
|
||||
{
|
||||
string errorMsg = "Attempted to create a network event for an item (" + container.Item.Name + ") that hasn't been fully initialized yet.";
|
||||
DebugConsole.ThrowError(errorMsg);
|
||||
@@ -100,13 +101,6 @@ namespace Barotrauma
|
||||
GameAnalyticsSDK.Net.EGAErrorSeverity.Error, errorMsg);
|
||||
return;
|
||||
}
|
||||
|
||||
int componentIndex = container.Item.GetComponentIndex(container);
|
||||
if (componentIndex == -1)
|
||||
{
|
||||
DebugConsole.Log("Creating a network event for the item \"" + container.Item + "\" failed, ItemContainer not found in components");
|
||||
return;
|
||||
}
|
||||
|
||||
if (GameMain.NetworkMember != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user