fix: missing this check to see if the item needs to be combined with something or not

This commit is contained in:
Duncan Brown committed 2022-12-28 00:04:16 -05:00
1 parent b827092176
commit 7f1add6505
1 file changed
+2 -1
@@ -528,7 +528,8 @@ func perform_inputevent_on_object(
# Check if object must be in inventory to be used and update # Check if object must be in inventory to be used and update
# action state if necessary # action state if necessary
if obj.node.use_from_inventory_only and \ if obj.node.use_from_inventory_only and \
escoria.inventory_manager.inventory_has(obj.global_id): escoria.inventory_manager.inventory_has(obj.global_id) and \
need_combine:
# We're missing a target here for our tool to be used on # We're missing a target here for our tool to be used on
current_tool = obj current_tool = obj