Fix proximity test

This got broken when the tool type was turned into an actual object and didn't
get noticed. Fixed now.