From b4d0a1bd386a952a46c5defe35d3db989e18f402 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 30 Jul 2018 14:28:04 +0300 Subject: [PATCH] Inventory sync fix (component index included in events created when the server receives an inventory update from a client). --- Barotrauma/BarotraumaShared/Source/Items/Inventory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/Source/Items/Inventory.cs b/Barotrauma/BarotraumaShared/Source/Items/Inventory.cs index c315aa67a..0c76077c3 100644 --- a/Barotrauma/BarotraumaShared/Source/Items/Inventory.cs +++ b/Barotrauma/BarotraumaShared/Source/Items/Inventory.cs @@ -228,7 +228,7 @@ namespace Barotrauma } } - GameMain.Server.CreateEntityEvent(Owner as IServerSerializable, new object[] { NetEntityEvent.Type.InventoryState }); + CreateNetworkEvent(); foreach (Item item in Items.Distinct()) {