PhysicsBodyPosition networkevents aren't sent for items that are inside an inventory (e.g. carried by a character), items can be moved from the inventory to containers by double clicking
This commit is contained in:
@@ -701,7 +701,7 @@ namespace Barotrauma
|
||||
FindHull();
|
||||
|
||||
Vector2 moveAmount = body.SimPosition - body.LastSentPosition;
|
||||
if (moveAmount != Vector2.Zero && moveAmount.Length() > NetConfig.ItemPosUpdateDistance)
|
||||
if (parentInventory == null && moveAmount != Vector2.Zero && moveAmount.Length() > NetConfig.ItemPosUpdateDistance)
|
||||
{
|
||||
new NetworkEvent(NetworkEventType.PhysicsBodyPosition, ID, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user