Skip to content

Commit

Permalink
fix: don't spam incorrect messages about eating out of half-empty con…
Browse files Browse the repository at this point in the history
…tainers (#4609)
  • Loading branch information
chaosvolt committed May 9, 2024
1 parent e921e8c commit d4e621e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/avatar_action.cpp
Expand Up @@ -899,7 +899,7 @@ void avatar_action::eat( avatar &you, item *loc )
loc->attempt_detach( [&you]( detached_ptr<item> &&it ) {
return you.consume_item( std::move( it ) );
} );
if( loc->is_food_container() || !you.can_consume_as_is( *loc ) ) {
if( !loc->is_food_container() && !you.can_consume_as_is( *loc ) ) {
add_msg( _( "You leave the empty %s." ), loc->tname() );
}
}
Expand Down

0 comments on commit d4e621e

Please sign in to comment.