mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] prevent sheet snatcher overflow (#9872)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
4019c963eb
commit
b9813a3627
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user