mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 06:27:26 +01:00
Slightly refactors storage item insertion (#24429)
* everything is on fire * silent trait check * how did it even become CRLF * minor formatting * fix icon updating and adds silent insertion to global trait list * adds the new parameter to documentation - whoops! * pain * contra review * contra review again, reduces amount of checks for user in the loops --------- Co-authored-by: cybercapitalism <98280110+cybercapitalism@users.noreply.github.com>
This commit is contained in:
co-authored by
cybercapitalism
parent
25848b6988
commit
19c0b70171
@@ -928,7 +928,7 @@
|
||||
var/obj/item/storage/bag/trash/bag = jani_vehicle?.mybag || jani_cart?.mybag
|
||||
var/obj/trashed_into
|
||||
if(bag?.can_be_inserted(garbage, TRUE))
|
||||
bag.handle_item_insertion(garbage, TRUE)
|
||||
bag.handle_item_insertion(garbage, user, TRUE)
|
||||
trashed_into = bag
|
||||
else if(target_bin)
|
||||
move_into_storage(user, target_bin, garbage)
|
||||
|
||||
Reference in New Issue
Block a user