From 9e1a4d8902e73b6558c56f8f55539083721eba73 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Sun, 31 Mar 2019 19:13:24 +0300 Subject: [PATCH] (718d22401) Don't attempt to send position updates for items that have no enabled physics body (e.g. attached items). Closes #1376 --- Barotrauma/BarotraumaServer/Source/Networking/GameServer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaServer/Source/Networking/GameServer.cs b/Barotrauma/BarotraumaServer/Source/Networking/GameServer.cs index d99e30c5f..d4c20614b 100644 --- a/Barotrauma/BarotraumaServer/Source/Networking/GameServer.cs +++ b/Barotrauma/BarotraumaServer/Source/Networking/GameServer.cs @@ -1370,7 +1370,8 @@ namespace Barotrauma.Networking while (!c.NeedsMidRoundSync && c.PendingPositionUpdates.Count > 0) { var entity = c.PendingPositionUpdates.Peek(); - if (entity == null || entity.Removed) + if (entity == null || entity.Removed || + (entity is Item item && item.PositionUpdateInterval == float.PositiveInfinity)) { c.PendingPositionUpdates.Dequeue(); continue;