Merge pull request #16897 from Kashargul/snatcher

prevent sheet snatcher overflow
This commit is contained in:
Cameron Lennox
2025-01-13 17:47:07 -05:00
committed by GitHub
@@ -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)