From 035810518a1e9f1f026c4400496a6e4bcb111b12 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 5 Nov 2023 04:06:39 +0000 Subject: [PATCH] When trashing an item, avoid getting it from a container if not in hands Simple change to avoid discarding wanted items. --- common-items.lic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common-items.lic b/common-items.lic index 7f8f7016fd..3ac6e756ee 100644 --- a/common-items.lic +++ b/common-items.lic @@ -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/)