Skip to content

Commit

Permalink
Fix belt offset when on waist
Browse files Browse the repository at this point in the history
  • Loading branch information
DaXcess committed Sep 8, 2024
1 parent ce4509c commit f2e3450
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/Patches/ItemPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private static bool HandleUpdateItemOffset(GrabbableObject item)
return true;

// If the item isn't held, we don't care
if (item.playerHeldBy == null)
if (item.playerHeldBy == null || item.playerHeldBy.currentlyHeldObjectServer != item)
return true;

// Don't set custom offset if remote player is not in VR
Expand Down
3 changes: 1 addition & 2 deletions Source/Player/VRInteractor.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using LCVR.Assets;
using LCVR.Assets;
using LCVR.Input;
using LCVR.Physics;
using System.Collections.Generic;
Expand Down

0 comments on commit f2e3450

Please sign in to comment.