Skip to content

Commit

Permalink
Try using Network.ClearInterpolation (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Metapyziks committed May 24, 2024
1 parent 2b050ba commit 6bda27a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/Behaviors/Holder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ private void ThrowOneInternal( Direction dir, int range )
var item = HeldItems[0];

item.GameObject.SetParent( null );
item.Network.ClearInterpolation();

item.DispatchDropped();

var (row, col) = MazeObject.CellIndex;
Expand Down Expand Up @@ -150,6 +152,7 @@ public void PickUp( Guid itemId, bool airborne )
else
{
item.GameObject.SetParent( GameObject );
item.Network.ClearInterpolation();
}

item.HeldVelocity = 0f;
Expand Down

0 comments on commit 6bda27a

Please sign in to comment.