Skip to content

Commit

Permalink
Merge pull request VOREStation#16897 from Kashargul/snatcher
Browse files Browse the repository at this point in the history
prevent sheet snatcher overflow
  • Loading branch information
Cameron-The-Raven authored Jan 13, 2025
2 parents ec31347 + fee5b21 commit ad31f0b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions code/game/objects/items/weapons/storage/bags.dm
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,15 @@
break

if(!inserted)
usr.remove_from_mob(S)
if (usr.client && usr.s_active != src)
usr.client.screen -= S
S.dropped(usr)
S.loc = src
if(capacity < current + S.get_amount())
var/obj/item/stack/F = S.split(amount)
F.loc = src
else
usr.remove_from_mob(S)
if (usr.client && usr.s_active != src)
usr.client.screen -= S
S.dropped(usr)
S.loc = src

orient2hud(usr)
if(usr.s_active)
Expand Down

0 comments on commit ad31f0b

Please sign in to comment.