Skip to content

Commit

Permalink
Check for possible to wield completed craft (#36230)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpwbrown authored and ZhilkinSerg committed Dec 19, 2019
1 parent 33ad641 commit 8d25275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crafting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1211,10 +1211,10 @@ void player::complete_craft( item &craft, const tripoint &loc )

if( newit.made_of( LIQUID ) ) {
liquid_handler::handle_all_liquid( newit, PICKUP_RANGE );
} else if( loc == tripoint_zero ) {
} else if( loc == tripoint_zero && can_wield( newit ).success() ) {
wield_craft( *this, newit );
} else {
set_item_map_or_vehicle( *this, loc, newit );
set_item_map_or_vehicle( *this, pos(), newit );
}
}

Expand Down

0 comments on commit 8d25275

Please sign in to comment.