Inventory sync fix (component index included in events created when the server receives an inventory update from a client).

This commit is contained in:
Joonas Rikkonen
2018-07-30 14:28:04 +03:00
parent 60a563fe75
commit b4d0a1bd38
@@ -228,7 +228,7 @@ namespace Barotrauma
} }
} }
GameMain.Server.CreateEntityEvent(Owner as IServerSerializable, new object[] { NetEntityEvent.Type.InventoryState }); CreateNetworkEvent();
foreach (Item item in Items.Distinct()) foreach (Item item in Items.Distinct())
{ {