When searching nearby entities, they must match the specified type

I really wanted this plugin to work, but sadly, it didn't. The problem was that when you were searching for nearbyEntities from your filtered list, you were counting all entity types.  This patch fixes that.