Handcuffs bugFixed

having trouble with handcuffs. when a backpack slot is toggled "gather existing" and a player has a set of handcuffs in their backpack and gets handcuffed. it goes to the backpack and player gets stuck in the handcuffed state. even tho the handcuffs gets removed from the backpack

I'm also interfering because we were trying to find out how to unblock the player for a very long time and after all the tests you can only unblock the player with a map wipe.

 
As Loptr09 already stated - to reproduce it:
 
Player A:
In the backpack hundcuffs
Gather: existing on
 
Player B:
Cuff player A
 
Player A should now be blocked, but should not have any visible handcuffs on. However, all panels are blocked as if he has handcuffs on. There are now 2 pairs of handcuffs in his backpack.

In my tests this error only appeared after the 2nd time. So the first time player A had normal handcuffs on and was able to free himself, the second time this bug occurred.

Thanks for reporting. I see there are some additional checks that Rust does to determine item movement eligibility, which habdle the case where players are restrained, so I'll look into running the same checks when gather mode wants to move an item.

Merged post

Can you test this version? I want to make sure it's solving the issue before releasing it.
https://github.com/WheteThunger/Backpacks/blob/master/Backpacks.cs

Locked automatically