The bug
Sniffer tries to sniff out the blocks outside the world border.
Reproduce steps
Create a Superflat world.
Use the following command:
/worldborder set 6/worldborder set 6Summon a sniffer.
Found it trying to sniff out the blocks outside the world border.
Confirmed.