(718d22401) Don't attempt to send position updates for items that have no enabled physics body (e.g. attached items). Closes #1376
This commit is contained in:
@@ -1370,7 +1370,8 @@ namespace Barotrauma.Networking
|
|||||||
while (!c.NeedsMidRoundSync && c.PendingPositionUpdates.Count > 0)
|
while (!c.NeedsMidRoundSync && c.PendingPositionUpdates.Count > 0)
|
||||||
{
|
{
|
||||||
var entity = c.PendingPositionUpdates.Peek();
|
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();
|
c.PendingPositionUpdates.Dequeue();
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user