mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 12:37:26 +01:00
Committing a fix by SuperSayu for emptying plantbags into the smartfridge, and trashbags into disposals.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5498 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -92,11 +92,11 @@
|
||||
return
|
||||
|
||||
if(istype(I, /obj/item/weapon/storage/bag/trash))
|
||||
var/obj/item/weapon/storage/bag/trash/T = I
|
||||
user << "\blue You empty the bag."
|
||||
for(var/obj/item/O in I.contents)
|
||||
O.loc = src
|
||||
I.contents -= O
|
||||
I.update_icon()
|
||||
for(var/obj/item/O in T.contents)
|
||||
T.remove_from_storage(O,src)
|
||||
T.update_icon()
|
||||
update()
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user