[MIRROR] prevent sheet snatcher overflow (#9872)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-01-14 08:38:29 -07:00
committed by GitHub
parent 4019c963eb
commit b9813a3627

View File

@@ -326,6 +326,10 @@
break
if(!inserted)
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