runelite-client/src/main/java/net/runelite/client/plugins/herbiboars/HerbiboarPlugin.java
// Store relevant GroundObjects (tracks on trails, and some tunnels)
Store relevant GroundObjects (tracks on trails, and some tunnels)
Store relevant GroundObjects ( tracks on trails and some tunnels )
private void onGroundObject(Tile tile, TileObject oldObject, TileObject newObject)
	{
		trails.remove(oldObject);
		tunnels.remove(oldObject);
		if (newObject == null)
		{
			return;
		}
		if (HerbiboarTrail.getTrailIds().contains(newObject.getId()))
		{
			trails.put(newObject, tile);
			return;
		}
		if (END_LOCATIONS.contains(newObject.getWorldLocation()))
		{
			tunnels.put(newObject, tile);
		}
	}
private void onGroundObject ( Tile tile , TileObject oldObject , TileObject newObject ) { trails . remove ( oldObject ) ; tunnels . remove ( oldObject ) ; if ( newObject == null ) { return ; } if ( HerbiboarTrail . getTrailIds ( ) . contains ( newObject . getId ( ) ) ) { trails . put ( newObject , tile ) ; return ; } if ( END_LOCATIONS . contains ( newObject . getWorldLocation ( ) ) ) { tunnels . put ( newObject , tile ) ; } }
Store relevant GroundObjects (tracks on trails, and some tunnels)
Store relevant GroundObjects ( tracks on trails and some tunnels )
//Trails //Herbiboar tunnel