Skip to content

Commit

Permalink
When trashing an item, avoid getting it from a container if not in hands
Browse files Browse the repository at this point in the history
Simple change to avoid discarding wanted items.
  • Loading branch information
cbisazza committed Nov 5, 2023
1 parent bf17199 commit 0358105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common-items.lic
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ module DRCI

def dispose_trash(item, worn_trashcan = nil, worn_trashcan_verb = nil)
return unless item
return unless DRCI.get_item_if_not_held?(item)
return unless in_hands?(item)

if worn_trashcan
case DRC.bput("put my #{item} in my #{worn_trashcan}", DROP_TRASH_RETRY_PATTERNS, DROP_TRASH_SUCCESS_PATTERNS, DROP_TRASH_FAILURE_PATTERNS, /^Perhaps you should be holding that first/)
Expand Down

0 comments on commit 0358105

Please sign in to comment.