Only search if the player is using the tool.

This prevents searching when the tool is set as a normal block which can be obtained by players.