Skip to content

Commit c5f8b4b

Browse files
Banane9Nytra
andcommitted
Fix duplication of grabbed items (inverted check)
Co-authored-by: Nytra <14206961+Nytra@users.noreply.github.com>
1 parent ec130a2 commit c5f8b4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CommunityBugFixCollection/DuplicateAndMoveMultipleGrabbedItems.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public static bool DuplicateGrabbedPrefix(InteractionHandler __instance)
9696
{
9797
foreach (var grabbedObject in __instance.Grabber.GrabbedObjects)
9898
{
99-
if (__instance.Grabber.GrabbableGetComponentInParents<IDuplicateBlock>(grabbedObject.Slot, excludeDisabled: true) == null)
99+
if (__instance.Grabber.GrabbableGetComponentInParents<IDuplicateBlock>(grabbedObject.Slot, excludeDisabled: true) is not null)
100100
continue;
101101

102102
toDuplicate.Add(grabbedObject.Slot.GetObjectRoot(__instance.Grabber.Slot));

0 commit comments

Comments
 (0)