Fixed sometimes using items on full storage items (#36711)
* Fixed sometimes using items on full storage items * Removed redundant code and fixed spray being used on container
This commit is contained in:
committed by
CitadelStationBot
parent
5dddb2db45
commit
80fee95dab
@@ -423,9 +423,7 @@
|
||||
return //Robots can't interact with storage items.
|
||||
|
||||
if(!can_be_inserted(W, 0 , user))
|
||||
if(contents.len >= storage_slots) //don't use items on the backpack if they don't fit
|
||||
return 1
|
||||
return 0
|
||||
return 1
|
||||
|
||||
handle_item_insertion(W, 0 , user)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user