So I was wondering if there is a way to add all sniffer discovered locations and wipe them clean.
I have only managed to get the newer ones to cleared and not the old ones.
@EventHandler(priority = EventPriority.MONITOR)
public void onSnifferDiscoveredItem(EntityDropItemEvent e) {
if (e instanceof Sniffer sniffer) {
if (e.isCancelled()) return;
Location location = sniffer.getLocation();
Block bLocation = sniffer.getWorld().getBlockAt(location.getBlockX(), location.getBlockY(), location.getBlockZ());
sniffer.removeExploredLocation((Location) bLocation);
}
}